Package com.igormaznitsa.jbbp.io
Enum Class JBBPByteOrder
- All Implemented Interfaces:
Serializable,Comparable<JBBPByteOrder>,Constable
Constants define byte order for multibyte values to be read or written into streams.
- 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 JBBPByteOrderReturns the enum constant of this class with the specified name.static JBBPByteOrder[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
The Little-Endian order. Little-endian systems store the least significant byte in the smallest address.
-
-
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
-