| 枚举常量和说明 |
|---|
ANNOUNCED |
ANNOUNCING_1 |
ANNOUNCING_2 |
CANCELED |
CANCELING_1 |
CANCELING_2 |
CANCELING_3 |
CLOSED |
CLOSING |
PROBING_1 |
PROBING_2 |
PROBING_3 |
| 限定符和类型 | 方法和说明 |
|---|---|
DNSState |
advance()
Returns the next advanced state.
|
boolean |
isAnnounced()
Returns true, if this is an announced state.
|
boolean |
isAnnouncing()
Returns true, if this is an announcing state.
|
boolean |
isCanceled()
Returns true, if this is a canceled state.
|
boolean |
isCanceling()
Returns true, if this is a canceling state.
|
boolean |
isClosed()
Returns true, if this is a closing state.
|
boolean |
isClosing()
Returns true, if this is a closing state.
|
boolean |
isProbing()
Returns true, if this is a probing state.
|
DNSState |
revert()
Returns to the next reverted state.
|
java.lang.String |
toString() |
static DNSState |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static DNSState[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DNSState PROBING_1
public static final DNSState PROBING_2
public static final DNSState PROBING_3
public static final DNSState ANNOUNCING_1
public static final DNSState ANNOUNCING_2
public static final DNSState ANNOUNCED
public static final DNSState CANCELING_1
public static final DNSState CANCELING_2
public static final DNSState CANCELING_3
public static final DNSState CANCELED
public static final DNSState CLOSING
public static final DNSState CLOSED
public static DNSState[] values()
for (DNSState c : DNSState.values()) System.out.println(c);
public static DNSState valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public final java.lang.String toString()
toString 在类中 java.lang.Enum<DNSState>public final DNSState advance()
public final DNSState revert()
public final boolean isProbing()
true if probing state, false otherwisepublic final boolean isAnnouncing()
true if announcing state, false otherwisepublic final boolean isAnnounced()
true if announced state, false otherwisepublic final boolean isCanceling()
true if canceling state, false otherwisepublic final boolean isCanceled()
true if canceled state, false otherwisepublic final boolean isClosing()
true if closing state, false otherwisepublic final boolean isClosed()
true if closed state, false otherwise