Package com.hazelcast.memory
Class MemorySize
java.lang.Object
com.hazelcast.memory.Capacity
com.hazelcast.memory.MemorySize
Deprecated.
MemorySize represents a memory size with given value and 
MemoryUnit- Since:
- 3.4
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMemorySize(long value) Deprecated.MemorySize(long value, MemoryUnit unit) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionstatic MemorySizeDeprecated.since 5.1, useCapacity.parse(String)instead.static MemorySizeparse(String value, MemoryUnit defaultUnit) Deprecated.since 5.1, useCapacity.parse(String, MemoryUnit)insteadMethods inherited from class com.hazelcast.memory.Capacitybytes, equals, getUnit, getValue, gigaBytes, hashCode, kiloBytes, megaBytes, of, toPrettyString, toPrettyString, toPrettyString, toString
- 
Constructor Details- 
MemorySizepublic MemorySize(long value) Deprecated.
- 
MemorySizeDeprecated.
 
- 
- 
Method Details- 
parseDeprecated.since 5.1, useCapacity.parse(String)instead.Parses string representation of a memory size value. Value may end with one of suffixes;- 'k' or 'K' for 'kilo',
- 'm' or 'M' for 'mega',
- 'g' or 'G' for 'giga'.
 Default unit is bytes. Examples: 12345, 12345m, 12345K, 123456G 
- 
parseDeprecated.since 5.1, useCapacity.parse(String, MemoryUnit)insteadParses string representation of a memory size value. Value may end with one of suffixes;- 'k' or 'K' for 'kilo',
- 'm' or 'M' for 'mega',
- 'g' or 'G' for 'giga'.
 Uses default unit if value does not contain unit information. Examples: 12345, 12345m, 12345K, 123456G 
 
- 
Capacityshould be used instead.