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 Summary
ConstructorsConstructorDescriptionMemorySize(long value) Deprecated.MemorySize(long value, MemoryUnit unit) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySizeDeprecated.useCapacity.parse(String)instead.static MemorySizeparse(String value, MemoryUnit defaultUnit) Deprecated.useCapacity.parse(String, MemoryUnit)insteadMethods inherited from class com.hazelcast.memory.Capacity
bytes, equals, getUnit, getValue, gigaBytes, hashCode, kiloBytes, megaBytes, of, toPrettyString, toPrettyString, toPrettyString, toString
-
Constructor Details
-
MemorySize
public MemorySize(long value) Deprecated. -
MemorySize
Deprecated.
-
-
Method Details
-
parse
Deprecated.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
-
parse
Deprecated.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.