public enum UnitOfMeasure extends Enum<UnitOfMeasure>
Enum Constant and Description |
---|
BYTES
The statistic represents some number of bytes.
|
MILLISECONDS
The statistic is specified as a duration in milliseconds.
|
UNSPECIFIED
The unit is unspecified.
|
Modifier and Type | Method and Description |
---|---|
static UnitOfMeasure |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitOfMeasure[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitOfMeasure MILLISECONDS
public static final UnitOfMeasure BYTES
public static final UnitOfMeasure UNSPECIFIED
public static UnitOfMeasure[] values()
for (UnitOfMeasure c : UnitOfMeasure.values()) System.out.println(c);
public static UnitOfMeasure 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 nullCopyright © 2019 Actian Corporation. All rights reserved.