public static enum PiCounterModel.Unit extends java.lang.Enum<PiCounterModel.Unit>
Enum Constant and Description |
---|
BYTES
Counts only bytes.
|
PACKETS
Counts only packets.
|
PACKETS_AND_BYTES
Counts both packets and bytes.
|
Modifier and Type | Method and Description |
---|---|
static PiCounterModel.Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PiCounterModel.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PiCounterModel.Unit BYTES
public static final PiCounterModel.Unit PACKETS
public static final PiCounterModel.Unit PACKETS_AND_BYTES
public static PiCounterModel.Unit[] values()
for (PiCounterModel.Unit c : PiCounterModel.Unit.values()) System.out.println(c);
public static PiCounterModel.Unit 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 null