Enum Policer.Unit
- java.lang.Object
- 
- java.lang.Enum<Policer.Unit>
- 
- org.onosproject.net.behaviour.trafficcontrol.Policer.Unit
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<Policer.Unit>
 - Enclosing interface:
- Policer
 
 public static enum Policer.Unit extends java.lang.Enum<Policer.Unit> Unit of traffic used by this policer.
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description B_PER_SECByte per second.KB_PER_SECKByte per second.MB_PER_SECMByte per second.PKTS_PER_SECPackets per second.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Policer.UnitvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Policer.Unit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
PKTS_PER_SECpublic static final Policer.Unit PKTS_PER_SEC Packets per second.
 - 
B_PER_SECpublic static final Policer.Unit B_PER_SEC Byte per second.
 - 
KB_PER_SECpublic static final Policer.Unit KB_PER_SEC KByte per second.
 - 
MB_PER_SECpublic static final Policer.Unit MB_PER_SEC MByte per second.
 
- 
 - 
Method Detail- 
valuespublic static Policer.Unit[] 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 (Policer.Unit c : Policer.Unit.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static Policer.Unit 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
 
 
- 
 
-