public enum TrafficClassEnum extends Enum<TrafficClassEnum>
Enum Constant and Description |
---|
IPTOS_DEFAULT |
IPTOS_LOWCOST |
IPTOS_LOWDELAY |
IPTOS_RELIABILITY |
IPTOS_THROUGHPUT |
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static TrafficClassEnum |
valueOf(int value)
Get back the Enum value fro the integer value
|
static TrafficClassEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrafficClassEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrafficClassEnum IPTOS_DEFAULT
public static final TrafficClassEnum IPTOS_LOWCOST
public static final TrafficClassEnum IPTOS_RELIABILITY
public static final TrafficClassEnum IPTOS_THROUGHPUT
public static final TrafficClassEnum IPTOS_LOWDELAY
public static TrafficClassEnum[] values()
for (TrafficClassEnum c : TrafficClassEnum.values()) System.out.println(c);
public static TrafficClassEnum 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 TrafficClassEnum valueOf(int value)
value
- The interger value we are looking forCopyright © 2009–2013 Apache MINA Project. All rights reserved.