Package org.onlab.packet
Enum IPPrecedence
- java.lang.Object
- 
- java.lang.Enum<IPPrecedence>
- 
- org.onlab.packet.IPPrecedence
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<IPPrecedence>
 
 public enum IPPrecedence extends java.lang.Enum<IPPrecedence> Represents the deprecated IPv4 IP precedence. IP precedence occupied the 3 most-significant bits of the IPv4 ToS field
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description BEST_EFFORTCRITICALFLASHFLASH_OVERRIDEIMMEDIATEINTERNETWORK_CONTROLNETWORK_CONTROLPRIORITY
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IPPrecedencefromShort(short value)Returns the IP precedence Enum corresponding to the specified short.shortgetValue()Returns the short value of this IP precedence Enum.static IPPrecedencevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static IPPrecedence[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
BEST_EFFORTpublic static final IPPrecedence BEST_EFFORT 
 - 
PRIORITYpublic static final IPPrecedence PRIORITY 
 - 
IMMEDIATEpublic static final IPPrecedence IMMEDIATE 
 - 
FLASHpublic static final IPPrecedence FLASH 
 - 
FLASH_OVERRIDEpublic static final IPPrecedence FLASH_OVERRIDE 
 - 
CRITICALpublic static final IPPrecedence CRITICAL 
 - 
INTERNETWORK_CONTROLpublic static final IPPrecedence INTERNETWORK_CONTROL 
 - 
NETWORK_CONTROLpublic static final IPPrecedence NETWORK_CONTROL 
 
- 
 - 
Method Detail- 
valuespublic static IPPrecedence[] 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 (IPPrecedence c : IPPrecedence.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static IPPrecedence valueOf(java.lang.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:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 - 
fromShortpublic static IPPrecedence fromShort(short value) Returns the IP precedence Enum corresponding to the specified short.- Parameters:
- value- the short value of the IP precedence
- Returns:
- the IP precedence Enum corresponding to the specified short
- Throws:
- java.lang.IllegalArgumentException- if the short provided does not correspond to an IP precedence Enum value
 
 - 
getValuepublic short getValue() Returns the short value of this IP precedence Enum.- Returns:
- the short value of this IP precedence Enum
 
 
- 
 
-