public enum OpCode extends java.lang.Enum<OpCode> implements EnumConverter<java.lang.Byte>
| Enum Constant and Description |
|---|
IQUERY
Inverse query
|
NOTIFY
Zone transfer notification
|
QUERY
Standard query
|
STATUS
Server status request
|
UPDATE
Dynamic update message
|
| Modifier and Type | Field and Description |
|---|---|
private static ReverseEnumMap<java.lang.Byte,OpCode> |
map |
private byte |
value |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Byte |
convert()
Convert the enum to another type.
|
static OpCode |
convert(byte value)
Converts an ordinal value into an
OpCode. |
static OpCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OpCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpCode QUERY
public static final OpCode IQUERY
public static final OpCode STATUS
public static final OpCode NOTIFY
public static final OpCode UPDATE
private static ReverseEnumMap<java.lang.Byte,OpCode> map
private final byte value
public static OpCode[] values()
for (OpCode c : OpCode.values()) System.out.println(c);
public static OpCode 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>