Enum Class JBBPByteOrder

java.lang.Object
java.lang.Enum<JBBPByteOrder>
com.igormaznitsa.jbbp.io.JBBPByteOrder
All Implemented Interfaces:
Serializable, Comparable<JBBPByteOrder>, Constable

public enum JBBPByteOrder extends Enum<JBBPByteOrder>
Constants define byte order for multibyte values to be read or written into streams.
Since:
1.0
  • Enum Constant Details

    • BIG_ENDIAN

      public static final JBBPByteOrder BIG_ENDIAN
      The Big-Endian order. Big-endian systems store the most significant byte of a word in the smallest address and the least significant byte is stored in the largest address. The Default order for Java and Network.
    • LITTLE_ENDIAN

      public static final JBBPByteOrder LITTLE_ENDIAN
      The Little-Endian order. Little-endian systems store the least significant byte in the smallest address.
  • Method Details

    • values

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

      public static JBBPByteOrder valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null