public enum Unit extends java.lang.Enum<Unit>
TelemetryFormat
annotation.Enum Constant and Description |
---|
BYTES
The monitored value has the unit "bytes".
|
MICROSECONDS
The monitored value has the unit "microseconds".
|
MILLISECONDS
The monitored value has the unit "milliseconds".
|
NANOSECONDS
The monitored value has the unit "nanoseconds".
|
PER_SECOND
The monitored value has the unit "per second".
|
PERCENT
The monitored value has the unit "percent".
|
PLAIN
The monitored value is a unitless number.
|
Modifier and Type | Method and Description |
---|---|
static Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Unit PLAIN
public static final Unit PER_SECOND
TelemetryFormat.scale()
is set to a negative number.public static final Unit PERCENT
TelemetryFormat.scale()
to 2.public static final Unit MILLISECONDS
public static final Unit MICROSECONDS
public static final Unit NANOSECONDS
public static final Unit BYTES
public static Unit[] values()
for (Unit c : Unit.values()) System.out.println(c);
public static 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