public enum SampleUnits extends Enum<SampleUnits>
Source and display units for a sample usage parameter.
Enum Constant and Description |
---|
COUNT
The sample value is a dimensionless count.
|
MILLISECONDS
The sample value is a time in milliseconds.
|
NANOSECONDS
The sample value is a time in nanoseconds.
|
SECONDS
The sample value is a time in seconds.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get the descriptive name for the units value.
|
static SampleUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SampleUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SampleUnits COUNT
The sample value is a dimensionless count. The descriptive name for this value is "count".
public static final SampleUnits SECONDS
The sample value is a time in seconds. The descriptive name for this value is "time/seconds".
public static final SampleUnits MILLISECONDS
The sample value is a time in milliseconds. The descriptive name for this value is "time/milliseconds".
public static final SampleUnits NANOSECONDS
The sample value is a time in nanoseconds. The descriptive name for this value is "time/nanoseconds".
public static SampleUnits[] values()
for (SampleUnits c : SampleUnits.values()) System.out.println(c);
public static SampleUnits 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 nullpublic String getDescription()
Get the descriptive name for the units value.