Package com.igormaznitsa.jbbp.io
Enum Class JBBPBitOrder
- All Implemented Interfaces:
Serializable,Comparable<JBBPBitOrder>,Constable
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic JBBPBitOrderReturns the enum constant of this class with the specified name.static JBBPBitOrder[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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 nameNullPointerException- if the argument is null
-