Enum Class JBBPBitOrder

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

public enum JBBPBitOrder extends Enum<JBBPBitOrder>
Constants for a bit order of reading operations.
Since:
1.0
  • Enum Constant Details

    • MSB0

      public static final JBBPBitOrder MSB0
      Most Significant Bit First means that the most significant bit will arrive first, the 7th bit will be read as the first one.
    • LSB0

      public static final JBBPBitOrder LSB0
      Least Significant Bit First means that the least significant bit will arrive first, the 0th bit will be read as the first one. It is default order for Java.
  • Method Details

    • values

      public static JBBPBitOrder[] 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 JBBPBitOrder 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