public enum ByteOrder extends Enum<ByteOrder> implements org.eclipse.emf.common.util.Enumerator
ModbusPackage.getByteOrder()
Enum Constant and Description |
---|
BIG_ENDIAN
The 'BIG ENDIAN' literal object.
|
LITTLE_ENDIAN
The 'LITTLE ENDIAN' literal object.
|
Modifier and Type | Field and Description |
---|---|
static int |
BIG_ENDIAN_VALUE
The 'BIG ENDIAN' literal value.
|
static int |
LITTLE_ENDIAN_VALUE
The 'LITTLE ENDIAN' literal value.
|
static List<ByteOrder> |
VALUES
A public read-only list of all the 'Byte Order' enumerators.
|
Modifier and Type | Method and Description |
---|---|
static ByteOrder |
get(int value)
Returns the 'Byte Order' literal with the specified integer value.
|
static ByteOrder |
get(String literal)
Returns the 'Byte Order' literal with the specified literal value.
|
static ByteOrder |
getByName(String name)
Returns the 'Byte Order' literal with the specified name.
|
String |
getLiteral() |
String |
getName() |
int |
getValue() |
String |
toString()
Returns the literal value of the enumerator, which is its string representation.
|
static ByteOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteOrder BIG_ENDIAN
BIG_ENDIAN_VALUE
public static final ByteOrder LITTLE_ENDIAN
LITTLE_ENDIAN_VALUE
public static final int BIG_ENDIAN_VALUE
If the meaning of 'BIG ENDIAN' literal object isn't clear, there really should be more of a description here...
BIG_ENDIAN
,
Constant Field Valuespublic static final int LITTLE_ENDIAN_VALUE
If the meaning of 'LITTLE ENDIAN' literal object isn't clear, there really should be more of a description here...
LITTLE_ENDIAN
,
Constant Field Valuespublic static ByteOrder[] values()
for (ByteOrder c : ByteOrder.values()) System.out.println(c);
public static ByteOrder 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 static ByteOrder get(String literal)
public static ByteOrder getByName(String name)
public static ByteOrder get(int value)
public int getValue()
getValue
in interface org.eclipse.emf.common.util.Enumerator
public String getName()
getName
in interface org.eclipse.emf.common.util.Enumerator
public String getLiteral()
getLiteral
in interface org.eclipse.emf.common.util.Enumerator