public static enum DnsMessage.OPCODE extends java.lang.Enum<DnsMessage.OPCODE>
| Enum Constant and Description |
|---|
INVERSE_QUERY |
NOTIFY |
QUERY |
STATUS |
UNASSIGNED3 |
UPDATE |
| Modifier and Type | Method and Description |
|---|---|
static DnsMessage.OPCODE |
getOpcode(int value)
Retrieve the symbolic name of an opcode byte.
|
byte |
getValue()
Retrieve the byte value of this opcode.
|
static DnsMessage.OPCODE |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DnsMessage.OPCODE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DnsMessage.OPCODE QUERY
public static final DnsMessage.OPCODE INVERSE_QUERY
public static final DnsMessage.OPCODE STATUS
public static final DnsMessage.OPCODE UNASSIGNED3
public static final DnsMessage.OPCODE NOTIFY
public static final DnsMessage.OPCODE UPDATE
public static DnsMessage.OPCODE[] values()
for (DnsMessage.OPCODE c : DnsMessage.OPCODE.values()) System.out.println(c);
public static DnsMessage.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 byte getValue()
public static DnsMessage.OPCODE getOpcode(int value) throws java.lang.IllegalArgumentException
value - The byte value of the opcode.java.lang.IllegalArgumentException - If the byte value is not in the
range 0..15.