public enum DNSType extends Enum<DNSType>
| Enum Constant and Description |
|---|
A |
AAAA |
CERT |
CNAME |
MX |
NS |
SOA |
SPF |
SRV |
| Modifier and Type | Method and Description |
|---|---|
static DNSType |
get(int code) |
static DNSType |
get(String value) |
static List<DNSType> |
getAll() |
int |
getValue() |
static DNSType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DNSType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DNSType A
public static final DNSType CNAME
public static final DNSType SOA
public static final DNSType MX
public static final DNSType AAAA
public static final DNSType SRV
public static final DNSType CERT
public static final DNSType NS
public static final DNSType SPF
public static DNSType[] values()
for (DNSType c : DNSType.values()) System.out.println(c);
public static DNSType 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 int getValue()
public static DNSType get(int code)
Copyright © 2021. All rights reserved.