Class ByteLength

java.lang.Object
io.datarouter.bytes.ByteLength

public class ByteLength extends Object
  • Field Details

  • Method Details

    • toBytes

      public long toBytes()
    • toBytesInt

      public int toBytesInt()
    • toBytesDouble

      public double toBytesDouble()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public String toString()
      Overrides:
      toString in class Object
    • toDisplay

      public String toDisplay()
    • toDisplay

      public String toDisplay(ByteLength.ByteUnitSystem byteUnitSystem)
    • getAscValues

      public static ByteLength.Unit[] getAscValues(ByteLength.ByteUnitSystem byteUnitSystem)
    • ofBytes

      public static ByteLength ofBytes(long input)
    • ofKB

      public static ByteLength ofKB(long input)
    • ofMB

      public static ByteLength ofMB(long input)
    • ofGB

      public static ByteLength ofGB(long input)
    • ofTB

      public static ByteLength ofTB(long input)
    • ofPB

      public static ByteLength ofPB(long input)
    • ofKiB

      public static ByteLength ofKiB(long input)
    • ofMiB

      public static ByteLength ofMiB(long input)
    • ofGiB

      public static ByteLength ofGiB(long input)
    • ofTiB

      public static ByteLength ofTiB(long input)
    • ofPiB

      public static ByteLength ofPiB(long input)
    • toKB

      public long toKB()
    • toMB

      public long toMB()
    • toGB

      public long toGB()
    • toTB

      public long toTB()
    • toPB

      public long toPB()
    • toKiB

      public long toKiB()
    • toMiB

      public long toMiB()
    • toGiB

      public long toGiB()
    • toTiB

      public long toTiB()
    • toPiB

      public long toPiB()
    • toTiBDouble

      public double toTiBDouble()
    • sum

      public static ByteLength sum(ByteLength... byteLengths)
    • sum

      public static ByteLength sum(Collection<ByteLength> byteLengths)