Class Convertions

java.lang.Object
org.jdrupes.vmoperator.common.Convertions

public class Convertions extends Object
Provides methods for parsing “official” memory sizes..
  • Constructor Details

  • Method Details

    • parseMemory

      public static BigInteger parseMemory(Object amount)
      Parses a memory size specification.
      Parameters:
      amount - the amount
      Returns:
      the big integer
    • formatMemory

      public static String formatMemory(BigInteger size)
      Format memory size for humans.
      Parameters:
      size - the size
      Returns:
      the string