Package org.minidns.dnsqueryresult
Enum DnsQueryResult.QueryMethod
- java.lang.Object
-
- java.lang.Enum<DnsQueryResult.QueryMethod>
-
- org.minidns.dnsqueryresult.DnsQueryResult.QueryMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<DnsQueryResult.QueryMethod>
- Enclosing class:
- DnsQueryResult
public static enum DnsQueryResult.QueryMethod extends Enum<DnsQueryResult.QueryMethod>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description asyncTcp
asyncUdp
cachedDirect
cachedSynthesized
tcp
testWorld
udp
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DnsQueryResult.QueryMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static DnsQueryResult.QueryMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
udp
public static final DnsQueryResult.QueryMethod udp
-
tcp
public static final DnsQueryResult.QueryMethod tcp
-
asyncUdp
public static final DnsQueryResult.QueryMethod asyncUdp
-
asyncTcp
public static final DnsQueryResult.QueryMethod asyncTcp
-
cachedDirect
public static final DnsQueryResult.QueryMethod cachedDirect
-
cachedSynthesized
public static final DnsQueryResult.QueryMethod cachedSynthesized
-
testWorld
public static final DnsQueryResult.QueryMethod testWorld
-
-
Method Detail
-
values
public static DnsQueryResult.QueryMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DnsQueryResult.QueryMethod c : DnsQueryResult.QueryMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DnsQueryResult.QueryMethod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-