Enum NumberToByteArrayConversion.ByteOrder
java.lang.Object
java.lang.Enum<NumberToByteArrayConversion.ByteOrder>
org.junitpioneer.jupiter.converter.NumberToByteArrayConversion.ByteOrder
- All Implemented Interfaces:
Serializable, Comparable<NumberToByteArrayConversion.ByteOrder>
- Enclosing class:
NumberToByteArrayConversion
public static enum NumberToByteArrayConversion.ByteOrder
extends Enum<NumberToByteArrayConversion.ByteOrder>
Utility enum because
ByteOrder is not an enum.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConstant denoting big-endian byte order.Constant denoting little-endian byte order. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BIG_ENDIAN
Constant denoting big-endian byte order. In this order, the bytes of a multibyte value are ordered from most significant to least significant. This is the logical equivalent ofjava.nio.ByteOrder.BIG_ENDIAN -
LITTLE_ENDIAN
Constant denoting little-endian byte order. In this order, the bytes of a multibyte value are ordered from least significant to most significant. This is the logical equivalent ofjava.nio.ByteOrder.LITTLE_ENDIAN.
-
-
Constructor Details
-
ByteOrder
private ByteOrder()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-