public static enum NetworkDiagnostics.DnsResponseCode extends Enum<NetworkDiagnostics.DnsResponseCode>
Enum Constant and Description |
---|
FORMERR |
NOERROR |
NOTIMP |
NXDOMAIN |
REFUSED |
SERVFAIL |
Modifier and Type | Method and Description |
---|---|
static NetworkDiagnostics.DnsResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkDiagnostics.DnsResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkDiagnostics.DnsResponseCode NOERROR
public static final NetworkDiagnostics.DnsResponseCode FORMERR
public static final NetworkDiagnostics.DnsResponseCode SERVFAIL
public static final NetworkDiagnostics.DnsResponseCode NXDOMAIN
public static final NetworkDiagnostics.DnsResponseCode NOTIMP
public static final NetworkDiagnostics.DnsResponseCode REFUSED
public static NetworkDiagnostics.DnsResponseCode[] values()
for (NetworkDiagnostics.DnsResponseCode c : NetworkDiagnostics.DnsResponseCode.values()) System.out.println(c);
public static NetworkDiagnostics.DnsResponseCode 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 null