public enum OpCode extends Enum<OpCode> implements EnumConverter<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 | Method and Description |
---|---|
Byte |
convert()
Convert the enum to another type.
|
static OpCode |
convert(byte value)
Converts an ordinal value into an
OpCode . |
static OpCode |
valueOf(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 OpCode[] values()
for (OpCode c : OpCode.values()) System.out.println(c);
public static OpCode 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 Byte convert()
EnumConverter
convert
in interface EnumConverter<Byte>
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.