Class MemorySize

java.lang.Object
io.atomix.utils.memory.MemorySize

public class MemorySize extends Object
Memory size.
  • Constructor Details

    • MemorySize

      public MemorySize(long bytes)
  • Method Details

    • from

      public static MemorySize from(long bytes)
      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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object