public enum DnsResolverAddressTypes extends java.lang.Enum<DnsResolverAddressTypes>
Enum Constant and Description |
---|
IPV4_ONLY
Only resolve IPv4 addresses.
|
IPV4_PREFERRED
Prefer IPv4 addresses over IPv6 ones.
|
IPV6_ONLY
Only resolve IPv6 addresses.
|
IPV6_PREFERRED
Prefer IPv6 addresses over IPv4 ones.
|
Modifier and Type | Method and Description |
---|---|
static DnsResolverAddressTypes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DnsResolverAddressTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DnsResolverAddressTypes IPV4_ONLY
public static final DnsResolverAddressTypes IPV6_ONLY
public static final DnsResolverAddressTypes IPV4_PREFERRED
public static final DnsResolverAddressTypes IPV6_PREFERRED
public static DnsResolverAddressTypes[] values()
for (DnsResolverAddressTypes c : DnsResolverAddressTypes.values()) System.out.println(c);
public static DnsResolverAddressTypes 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 null