public static enum Edns.OptionCode extends java.lang.Enum<Edns.OptionCode>
| Modifier and Type | Field and Description |
|---|---|
int |
asInt |
java.lang.Class<? extends EdnsOption> |
clazz |
| Modifier and Type | Method and Description |
|---|---|
static Edns.OptionCode |
from(int optionCode) |
static Edns.OptionCode |
valueOf(java.lang.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 java.lang.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(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 static Edns.OptionCode from(int optionCode)