Uses of Enum Class
com.hazelcast.memory.MemoryUnit
Packages that use MemoryUnit
Package
Description
Provides classes/interfaces for memory utilities, heap/native memory storage support.
-
Uses of MemoryUnit in com.hazelcast.memory
Methods in com.hazelcast.memory that return MemoryUnitModifier and TypeMethodDescriptionstatic MemoryUnit
MemoryUnit.getById
(int id) Capacity.getUnit()
Returns unit of the capacitystatic MemoryUnit
Returns the enum constant of this class with the specified name.static MemoryUnit[]
MemoryUnit.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.hazelcast.memory with parameters of type MemoryUnitModifier and TypeMethodDescriptionabstract long
MemoryUnit.convert
(long value, MemoryUnit m) static Capacity
Capacity.of
(long value, MemoryUnit unit) Returns an instance ofCapacity
.static Capacity
Capacity.parse
(String value, MemoryUnit defaultUnit) Parses string representation of a capacity.static MemorySize
MemorySize.parse
(String value, MemoryUnit defaultUnit) Deprecated.static String
Capacity.toPrettyString
(long capacity, MemoryUnit unit) Utility method to create a pretty format representation of given capacity with a specified unit.Constructors in com.hazelcast.memory with parameters of type MemoryUnitModifierConstructorDescriptionCapacity
(long value, MemoryUnit unit) MemorySize
(long value, MemoryUnit unit) Deprecated.
Capacity.parse(String, MemoryUnit)
instead