Class MemorySize


  • public class MemorySize
    extends Object
    Memory size.
    • Constructor Detail

      • MemorySize

        public MemorySize​(long bytes)
    • Method Detail

      • 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