Class ByteSizeUtils
java.lang.Object
org.springframework.cloud.appbroker.deployer.util.ByteSizeUtils
Utility class for dealing with parseable byte sizes, such as memory and disk limits.
- Author:
- Eric Bottard
-
Method Summary
Modifier and TypeMethodDescriptionstatic Integer
parseToMebibytes
(String text) Return the number of mebibytes (1024*1024) denoted by the given text, where an optional case-insensitive unit of 'm' or 'g' can be used to mean mebi- or gebi- bytes, respectively.
-
Method Details
-
parseToMebibytes
Return the number of mebibytes (1024*1024) denoted by the given text, where an optional case-insensitive unit of 'm' or 'g' can be used to mean mebi- or gebi- bytes, respectively. Lack of unit assumes mebibytes.
-