public static enum DNSOverHTTPS.Type extends Enum<DNSOverHTTPS.Type>
| Enum Constant and Description |
|---|
V4_ONLYIPv4 only |
V4_PREFERREDIPv4 preferred |
V6_ONLYIPv6 only |
V6_PREFERREDIPv6 preferred |
| Modifier and Type | Method and 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 V4_PREFERRED
public static final DNSOverHTTPS.Type V6_ONLY
public static final DNSOverHTTPS.Type V6_PREFERRED
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 nullpublic static DNSOverHTTPS.Type[] values()
for (DNSOverHTTPS.Type c : DNSOverHTTPS.Type.values()) System.out.println(c);