public enum MessageType extends java.lang.Enum<MessageType> implements EnumConverter<java.lang.Byte>
| Enum Constant and Description |
|---|
QUERY
A query message.
|
RESPONSE
A response message.
|
| Modifier and Type | Field and Description |
|---|---|
private static ReverseEnumMap<java.lang.Byte,MessageType> |
map |
private byte |
value |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Byte |
convert()
Convert the enum to another type.
|
static MessageType |
convert(byte value)
Converts an ordinal value into a
MessageType. |
static MessageType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageType QUERY
public static final MessageType RESPONSE
private static ReverseEnumMap<java.lang.Byte,MessageType> map
private final byte value
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.Byte convert()
EnumConverterconvert in interface EnumConverter<java.lang.Byte>public static MessageType convert(byte value)
MessageType.value - MessageType.