public enum Endianness extends Enum<Endianness> implements Serializable
| Enum Constant and Description |
|---|
BigEndian
Bits or bytes order from the big end.
|
LittleEndian
Bits or bytes ordered from the little end.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the description for the enum.
|
String |
getName()
Return the descriptive name for the Endianness enum instance
|
int |
getOrdinal()
Return the numerical value for the enum.
|
static Endianness |
valueOf(String name)
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.
|
public static final Endianness BigEndian
public static final Endianness LittleEndian
public static Endianness[] values()
for (Endianness c : Endianness.values()) System.out.println(c);
public static Endianness valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getOrdinal()
public String getDescription()
public String getName()
Copyright © 2018 ODPi. All rights reserved.