java.lang.Object
org.springframework.cloud.appbroker.deployer.util.ByteSizeUtils

public final class ByteSizeUtils extends Object
Utility class for dealing with parseable byte sizes, such as memory and disk limits.
Author:
Eric Bottard
  • Method Details

    • parseToMebibytes

      public static 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. Lack of unit assumes mebibytes.