Serializable, Comparable<DNSOverHTTPS.Type>public static enum DNSOverHTTPS.Type extends Enum<DNSOverHTTPS.Type>
| Enum Constant | Description |
|---|---|
V4_ONLY |
|
V4_PREFERRED |
|
V6_ONLY |
|
V6_PREFERRED |
| Modifier and Type | Method | Description |
|---|---|---|
static DNSOverHTTPS.Type |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static DNSOverHTTPS.Type[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DNSOverHTTPS.Type V4_ONLY
public static final DNSOverHTTPS.Type V6_ONLY
public static final DNSOverHTTPS.Type V4_PREFERRED
public static final DNSOverHTTPS.Type V6_PREFERRED
public static DNSOverHTTPS.Type[] values()
for (DNSOverHTTPS.Type c : DNSOverHTTPS.Type.values()) System.out.println(c);
public static DNSOverHTTPS.Type 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