public enum Rfc1349TrafficClass extends java.lang.Enum<Rfc1349TrafficClass>
IPTOS_LOWCOST (0x02)
IPTOS_RELIABILITY (0x04)
IPTOS_THROUGHPUT (0x08)
IPTOS_LOWDELAY (0x10)
Enum Constant and Description |
---|
IPTOS_LOWCOST |
IPTOS_LOWDELAY |
IPTOS_NORMAL |
IPTOS_RELIABILITY |
IPTOS_THROUGHPUT |
Modifier and Type | Field and Description |
---|---|
private int |
trafficClass |
Modifier and Type | Method and Description |
---|---|
int |
value() |
static Rfc1349TrafficClass |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Rfc1349TrafficClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rfc1349TrafficClass IPTOS_NORMAL
public static final Rfc1349TrafficClass IPTOS_LOWCOST
public static final Rfc1349TrafficClass IPTOS_LOWDELAY
public static final Rfc1349TrafficClass IPTOS_RELIABILITY
public static final Rfc1349TrafficClass IPTOS_THROUGHPUT
public static Rfc1349TrafficClass[] values()
for (Rfc1349TrafficClass c : Rfc1349TrafficClass.values()) System.out.println(c);
public static Rfc1349TrafficClass valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int value()