org.jclouds.cloudwatch.domain
Enum Unit
java.lang.Object
java.lang.Enum<Unit>
org.jclouds.cloudwatch.domain.Unit
- All Implemented Interfaces:
- Serializable, Comparable<Unit>
public enum Unit
- extends Enum<Unit>
- Author:
- Adrian Cole, Andrei Savu
- See Also:
SECONDS
public static final Unit SECONDS
MICROSECONDS
public static final Unit MICROSECONDS
MILLISECONDS
public static final Unit MILLISECONDS
BYTES
public static final Unit BYTES
KILOBYTES
public static final Unit KILOBYTES
MEGABYTES
public static final Unit MEGABYTES
GIGABYTES
public static final Unit GIGABYTES
TERABYTES
public static final Unit TERABYTES
BITS
public static final Unit BITS
KILOBITS
public static final Unit KILOBITS
MEGABITS
public static final Unit MEGABITS
GIGABITS
public static final Unit GIGABITS
TERABITS
public static final Unit TERABITS
PERCENT
public static final Unit PERCENT
COUNT
public static final Unit COUNT
BYTES_PER_SECOND
public static final Unit BYTES_PER_SECOND
KILOBYTES_PER_SECOND
public static final Unit KILOBYTES_PER_SECOND
MEGABYTES_PER_SECOND
public static final Unit MEGABYTES_PER_SECOND
GIGABYTES_PER_SECOND
public static final Unit GIGABYTES_PER_SECOND
TERABYTES_PER_SECOND
public static final Unit TERABYTES_PER_SECOND
BITS_PER_SECOND
public static final Unit BITS_PER_SECOND
KILOBITS_PER_SECOND
public static final Unit KILOBITS_PER_SECOND
MEGABITS_PER_SECOND
public static final Unit MEGABITS_PER_SECOND
GIGABITS_PER_SECOND
public static final Unit GIGABITS_PER_SECOND
TERABITS_PER_SECOND
public static final Unit TERABITS_PER_SECOND
COUNT_PER_SECOND
public static final Unit COUNT_PER_SECOND
NONE
public static final Unit NONE
UNRECOGNIZED
public static final Unit UNRECOGNIZED
values
public static Unit[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Unit c : Unit.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Unit valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
value
public String value()
toString
public String toString()
- Overrides:
toString
in class Enum<Unit>
fromValue
public static Unit fromValue(String state)
Copyright © 2009-2012 jclouds. All Rights Reserved.