Package org.jdrupes.vmoperator.common
Class Convertions
java.lang.Object
org.jdrupes.vmoperator.common.Convertions
Provides methods for parsing “official” memory sizes..
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatMemory
(BigInteger size) Format memory size for humans.static BigInteger
parseMemory
(Object amount) Parses a memory size specification.
-
Constructor Details
-
Convertions
public Convertions()
-
-
Method Details
-
parseMemory
Parses a memory size specification.- Parameters:
amount
- the amount- Returns:
- the big integer
-
formatMemory
Format memory size for humans.- Parameters:
size
- the size- Returns:
- the string
-