public static enum Edns.OptionCode extends Enum<Edns.OptionCode>
| Enum Constant and Description |
|---|
NSIDNSID option |
UNKNOWNUnknown option code |
| Modifier and Type | Field and Description |
|---|---|
int | asIntasInt. |
Class<? extends EdnsOption> | clazzclazz. |
| Modifier and Type | Method and Description |
|---|---|
static Edns.OptionCode | from(int optionCode)from. |
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 NSID
public static final Edns.OptionCode UNKNOWN
public final int asInt
public final Class<? extends EdnsOption> clazz
public static Edns.OptionCode from(int optionCode)
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[] values()
for (Edns.OptionCode c : Edns.OptionCode.values()) System.out.println(c);