public static enum Meter.Unit extends Enum<Meter.Unit>
| Enum Constant and Description |
|---|
KB_PER_SEC
Kilo bits per second.
|
PKTS_PER_SEC
Packets per second.
|
| Modifier and Type | Method and Description |
|---|---|
static Meter.Unit |
valueOf(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.
|
public static final Meter.Unit PKTS_PER_SEC
public static final Meter.Unit KB_PER_SEC
public static Meter.Unit[] values()
for (Meter.Unit c : Meter.Unit.values()) System.out.println(c);
public static Meter.Unit valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null