Package io.atomix.utils.memory
Class MemorySize
java.lang.Object
io.atomix.utils.memory.MemorySize
Memory size.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MemorySize
public MemorySize(long bytes)
-
-
Method Details
-
from
Creates a memory size from the given bytes.- Parameters:
bytes- the number of bytes- Returns:
- the memory size
-
bytes
public long bytes()Returns the number of bytes.- Returns:
- the number of bytes
-
hashCode
public int hashCode() -
equals
-
toString
-