public enum DNSRecordClass extends java.lang.Enum<DNSRecordClass>
| 枚举常量和说明 |
|---|
CLASS_ANY
Not a DNS class, but a DNS query class, meaning "all classes"
|
CLASS_CH
CHAOS
|
CLASS_CS
CSNET
|
CLASS_HS
Hesiod
|
CLASS_IN
static final Internet
|
CLASS_NONE
Used in DNS UPDATE [RFC 2136]
|
CLASS_UNKNOWN |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CLASS_MASK
Multicast DNS uses the bottom 15 bits to identify the record class...
|
static int |
CLASS_UNIQUE
For answers the top bit indicates that all other cached records are now invalid.
|
static boolean |
NOT_UNIQUE |
static boolean |
UNIQUE |
| 限定符和类型 | 方法和说明 |
|---|---|
static DNSRecordClass |
classForIndex(int index) |
static DNSRecordClass |
classForName(java.lang.String name) |
java.lang.String |
externalName()
Return the string representation of this type
|
int |
indexValue()
Return the numeric value of this type
|
boolean |
isUnique(int index)
Checks if the class is unique
|
java.lang.String |
toString() |
static DNSRecordClass |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static DNSRecordClass[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DNSRecordClass CLASS_UNKNOWN
public static final DNSRecordClass CLASS_IN
public static final DNSRecordClass CLASS_CS
public static final DNSRecordClass CLASS_CH
public static final DNSRecordClass CLASS_HS
public static final DNSRecordClass CLASS_NONE
public static final DNSRecordClass CLASS_ANY
public static final int CLASS_MASK
public static final int CLASS_UNIQUE
public static final boolean UNIQUE
public static final boolean NOT_UNIQUE
public static DNSRecordClass[] values()
for (DNSRecordClass c : DNSRecordClass.values()) System.out.println(c);
public static DNSRecordClass valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public java.lang.String externalName()
public int indexValue()
public boolean isUnique(int index)
index - true is the class is unique, false otherwise.public static DNSRecordClass classForName(java.lang.String name)
name - public static DNSRecordClass classForIndex(int index)
index - public java.lang.String toString()
toString 在类中 java.lang.Enum<DNSRecordClass>