public enum Unit extends Enum<Unit>
Modifier and Type | Method and Description |
---|---|
static Unit |
fromValue(String state) |
String |
toString() |
String |
value() |
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 SECONDS
public static final Unit MICROSECONDS
public static final Unit MILLISECONDS
public static final Unit BYTES
public static final Unit KILOBYTES
public static final Unit MEGABYTES
public static final Unit GIGABYTES
public static final Unit TERABYTES
public static final Unit BITS
public static final Unit KILOBITS
public static final Unit MEGABITS
public static final Unit GIGABITS
public static final Unit TERABITS
public static final Unit PERCENT
public static final Unit COUNT
public static final Unit BYTES_PER_SECOND
public static final Unit KILOBYTES_PER_SECOND
public static final Unit MEGABYTES_PER_SECOND
public static final Unit GIGABYTES_PER_SECOND
public static final Unit TERABYTES_PER_SECOND
public static final Unit BITS_PER_SECOND
public static final Unit KILOBITS_PER_SECOND
public static final Unit MEGABITS_PER_SECOND
public static final Unit GIGABITS_PER_SECOND
public static final Unit TERABITS_PER_SECOND
public static final Unit COUNT_PER_SECOND
public static final Unit NONE
public static final Unit UNRECOGNIZED
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 String value()
Copyright © 2009-2012 jclouds. All Rights Reserved.