Enum Endianness
- All Implemented Interfaces:
Serializable
,Comparable<Endianness>
,java.lang.constant.Constable
Enumeration for specifying the endianness of the image.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBig endian, most significant byte first, MSB, Motorola Format.Default endianness.Little endian, least significant byte first, LSB, Intel Format. -
Method Summary
Modifier and TypeMethodDescriptionstatic Endianness
getEndianType
(String value) Translates an endian type specified in the configuration file into the equivalent type should one exist.static Endianness
Returns the enum constant of this type with the specified name.static Endianness[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default endianness. This can be different depending on the output format or is used when the image format doesn't allow to specify the endianness. -
LITTLE_ENDIAN
Little endian, least significant byte first, LSB, Intel Format. -
BIG_ENDIAN
Big endian, most significant byte first, MSB, Motorola Format.
-
-
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
-
getEndianType
Translates an endian type specified in the configuration file into the equivalent type should one exist.- Parameters:
value
- The value specified in the configration file- Returns:
- Returns the Endianess object of the found type. If no type matches it returns null.
-