public static enum DNSMessage.OPCODE extends Enum<DNSMessage.OPCODE>
Enum Constant and Description |
---|
INVERSE_QUERY |
NOTIFY |
QUERY |
STATUS |
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(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 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(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 getValue()
public static DNSMessage.OPCODE getOpcode(int value)
value
- The byte value of the opcode.IllegalArgumentException
- If the byte value is not in the
range 0..15.Copyright © 2014–2015. All rights reserved.