public enum UsageUnit extends Enum<UsageUnit>
Enum Constant and Description |
---|
BYTES
Enum value Bytes.
|
BYTES_PER_SECOND
Enum value BytesPerSecond.
|
COUNT
Enum value Count.
|
COUNTS_PER_SECOND
Enum value CountsPerSecond.
|
PERCENT
Enum value Percent.
|
SECONDS
Enum value Seconds.
|
Modifier and Type | Method and Description |
---|---|
static UsageUnit |
fromString(String value)
Parses a serialized value to a UsageUnit instance.
|
String |
toString() |
static UsageUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UsageUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UsageUnit COUNT
public static final UsageUnit BYTES
public static final UsageUnit SECONDS
public static final UsageUnit PERCENT
public static final UsageUnit COUNTS_PER_SECOND
public static final UsageUnit BYTES_PER_SECOND
public static UsageUnit[] values()
for (UsageUnit c : UsageUnit.values()) System.out.println(c);
public static UsageUnit 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 static UsageUnit fromString(String value)
value
- the serialized value to parse.Copyright © 2019. All rights reserved.