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 MemoryUnitMemoryUnit.getById(int id) Capacity.getUnit()Returns unit of the capacitystatic MemoryUnitReturns 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 longMemoryUnit.convert(long value, MemoryUnit m) static CapacityCapacity.of(long value, MemoryUnit unit) Returns an instance ofCapacity.static CapacityCapacity.parse(String value, MemoryUnit defaultUnit) Parses string representation of a capacity.static MemorySizeMemorySize.parse(String value, MemoryUnit defaultUnit) Deprecated.static StringCapacity.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