public static enum Edns.OptionCode extends Enum<Edns.OptionCode>
Modifier and Type | Field and Description |
---|---|
int |
asInt |
Class<? extends EdnsOption> |
clazz |
Modifier and Type | Method and Description |
---|---|
static Edns.OptionCode |
from(int optionCode) |
static Edns.OptionCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Edns.OptionCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Edns.OptionCode UNKNOWN
public static final Edns.OptionCode NSID
public final int asInt
public final Class<? extends EdnsOption> clazz
public static Edns.OptionCode[] values()
for (Edns.OptionCode c : Edns.OptionCode.values()) System.out.println(c);
public static Edns.OptionCode 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 static Edns.OptionCode from(int optionCode)