public enum StandardUnit extends java.lang.Enum<StandardUnit>
Enum Constant and Description |
---|
Bits |
BitsSecond |
Bytes |
BytesSecond |
Count |
CountSecond |
Gigabits |
GigabitsSecond |
Gigabytes |
GigabytesSecond |
Kilobits |
KilobitsSecond |
Kilobytes |
KilobytesSecond |
Megabits |
MegabitsSecond |
Megabytes |
MegabytesSecond |
Microseconds |
Milliseconds |
None |
Percent |
Seconds |
Terabits |
TerabitsSecond |
Terabytes |
TerabytesSecond |
Modifier and Type | Method and Description |
---|---|
static StandardUnit |
fromValue(java.lang.String value)
Use this in place of valueOf.
|
java.lang.String |
toString() |
static StandardUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StandardUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardUnit Seconds
public static final StandardUnit Microseconds
public static final StandardUnit Milliseconds
public static final StandardUnit Bytes
public static final StandardUnit Kilobytes
public static final StandardUnit Megabytes
public static final StandardUnit Gigabytes
public static final StandardUnit Terabytes
public static final StandardUnit Bits
public static final StandardUnit Kilobits
public static final StandardUnit Megabits
public static final StandardUnit Gigabits
public static final StandardUnit Terabits
public static final StandardUnit Percent
public static final StandardUnit Count
public static final StandardUnit BytesSecond
public static final StandardUnit KilobytesSecond
public static final StandardUnit MegabytesSecond
public static final StandardUnit GigabytesSecond
public static final StandardUnit TerabytesSecond
public static final StandardUnit BitsSecond
public static final StandardUnit KilobitsSecond
public static final StandardUnit MegabitsSecond
public static final StandardUnit GigabitsSecond
public static final StandardUnit TerabitsSecond
public static final StandardUnit CountSecond
public static final StandardUnit None
public static StandardUnit[] values()
for (StandardUnit c : StandardUnit.values()) System.out.println(c);
public static StandardUnit 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 nullpublic java.lang.String toString()
toString
in class java.lang.Enum<StandardUnit>
public static StandardUnit fromValue(java.lang.String value)
value
- real valueCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.