public enum StandardUnit extends 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(String value)
Use this in place of valueOf.
|
String |
toString() |
static StandardUnit |
valueOf(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(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 toString()
toString
in class Enum<StandardUnit>
public static StandardUnit fromValue(String value)
value
- real valueCopyright © 2014. All rights reserved.