Enum Constant and Description |
---|
AF11 |
AF12 |
AF13 |
AF21 |
AF22 |
AF23 |
AF31 |
AF32 |
AF33 |
AF41 |
AF42 |
AF43 |
BE |
CS1 |
CS2 |
CS3 |
CS4 |
CS5 |
CS6 |
CS7 |
EF |
Modifier and Type | Method and Description |
---|---|
static DscpClass |
fromShort(short value)
Returns the DSCP class Enum corresponding to the specified short.
|
short |
getDropPrecedence()
Returns the corresponding drop precedence.
|
IPPrecedence |
getIPPrecedence()
Returns the corresponding IP precedence.
|
short |
getValue()
Returns the short value of this DSCP class Enum.
|
static DscpClass |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DscpClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DscpClass BE
public static final DscpClass AF11
public static final DscpClass AF12
public static final DscpClass AF13
public static final DscpClass AF21
public static final DscpClass AF22
public static final DscpClass AF23
public static final DscpClass AF31
public static final DscpClass AF32
public static final DscpClass AF33
public static final DscpClass AF41
public static final DscpClass AF42
public static final DscpClass AF43
public static final DscpClass CS1
public static final DscpClass CS2
public static final DscpClass CS3
public static final DscpClass CS4
public static final DscpClass CS5
public static final DscpClass CS6
public static final DscpClass CS7
public static final DscpClass EF
public static DscpClass[] values()
for (DscpClass c : DscpClass.values()) System.out.println(c);
public static DscpClass 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 static DscpClass fromShort(short value)
value
- the short value of the DSCP classjava.lang.IllegalArgumentException
- if the short provided does not
correspond to an DSCP class Enum valuepublic short getValue()
public IPPrecedence getIPPrecedence()
public short getDropPrecedence()