Package org.onosproject.net.meter
Enum Meter.Unit
- java.lang.Object
- 
- java.lang.Enum<Meter.Unit>
- 
- org.onosproject.net.meter.Meter.Unit
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<Meter.Unit>
 - Enclosing interface:
- Meter
 
 public static enum Meter.Unit extends java.lang.Enum<Meter.Unit> 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description KB_PER_SECKilo bits per second.PKTS_PER_SECPackets per second.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Meter.UnitvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Meter.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 Meter.Unit PKTS_PER_SEC Packets per second.
 - 
KB_PER_SECpublic static final Meter.Unit KB_PER_SEC Kilo bits per second.
 
- 
 - 
Method Detail- 
valuespublic static Meter.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 (Meter.Unit c : Meter.Unit.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static Meter.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
 
 
- 
 
-