Enum ByteUnitType

java.lang.Object
java.lang.Enum<ByteUnitType>
io.datarouter.bytes.ByteUnitType
All Implemented Interfaces:
Serializable, Comparable<ByteUnitType>, java.lang.constant.Constable

public enum ByteUnitType
extends Enum<ByteUnitType>
  • Enum Constant Details

  • Field Details

    • BIN_SORTED_ASC

      public static final ByteUnitType[] BIN_SORTED_ASC
  • Method Details

    • values

      public static ByteUnitType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ByteUnitType valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getAscValues

      public static ByteUnitType[] getAscValues​(ByteUnitType.ByteUnitSystem byteUnitSystem)
    • getNumBytesDisplay

      public static String getNumBytesDisplay​(long value, ByteUnitType toByteUnit)
    • getNumBytesDisplay

      public String getNumBytesDisplay​(long value)
    • getNumBytes

      public static double getNumBytes​(long numBytes, ByteUnitType toByteUnit)
    • getNumBytes

      public long getNumBytes()
    • getByteUnitName

      public io.datarouter.bytes.ByteUnitType.ByteUnitName getByteUnitName()
    • toBytes

      public long toBytes​(long input)
    • toBytesInt

      public int toBytesInt​(long input)