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
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Least Significant Bit First means that the least significant bit will arrive first, the 0th bit will be read as the first one.
    Most Significant Bit First means that the most significant bit will arrive first, the 7th bit will be read as the first one.
    Most Significant Bit First means that the most significant bit will arrive first, the 7th bit will be read as the first one.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static JBBPBitOrder[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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. Read data wille be presented in reverse format for Java because Java is LSB0.
    • 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.
    • MSB0_DIRECT

      public static final JBBPBitOrder MSB0_DIRECT
      Most Significant Bit First means that the most significant bit will arrive first, the 7th bit will be read as the first one. In opposite to MSB0 it doesn't make reverse for data during read and write.
      Since:
      3.0.1
  • 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