public enum Unit extends Enum<Unit>
Enum Constant and Description |
---|
BYTE_SECONDS
Enum value ByteSeconds.
|
BYTES
Enum value Bytes.
|
BYTES_PER_SECOND
Enum value BytesPerSecond.
|
COUNT
Enum value Count.
|
COUNT_PER_SECOND
Enum value CountPerSecond.
|
MILLI_SECONDS
Enum value MilliSeconds.
|
PERCENT
Enum value Percent.
|
SECONDS
Enum value Seconds.
|
UNSPECIFIED
Enum value Unspecified.
|
Modifier and Type | Method and Description |
---|---|
static Unit |
fromString(String value)
Parses a serialized value to a Unit instance.
|
String |
toString() |
static Unit |
valueOf(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 COUNT
public static final Unit BYTES
public static final Unit SECONDS
public static final Unit COUNT_PER_SECOND
public static final Unit BYTES_PER_SECOND
public static final Unit PERCENT
public static final Unit MILLI_SECONDS
public static final Unit BYTE_SECONDS
public static final Unit UNSPECIFIED
public static Unit[] values()
for (Unit c : Unit.values()) System.out.println(c);
public static Unit 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 Unit fromString(String value)
value
- the serialized value to parse.Copyright © 2019. All rights reserved.