org.jclouds.cloudwatch.domain
Enum Unit

java.lang.Object
  extended by java.lang.Enum<Unit>
      extended by org.jclouds.cloudwatch.domain.Unit
All Implemented Interfaces:
Serializable, Comparable<Unit>

public enum Unit
extends Enum<Unit>

Author:
Adrian Cole, Andrei Savu
See Also:

Enum Constant Summary
BITS
           
BITS_PER_SECOND
           
BYTES
           
BYTES_PER_SECOND
           
COUNT
           
COUNT_PER_SECOND
           
GIGABITS
           
GIGABITS_PER_SECOND
           
GIGABYTES
           
GIGABYTES_PER_SECOND
           
KILOBITS
           
KILOBITS_PER_SECOND
           
KILOBYTES
           
KILOBYTES_PER_SECOND
           
MEGABITS
           
MEGABITS_PER_SECOND
           
MEGABYTES
           
MEGABYTES_PER_SECOND
           
MICROSECONDS
           
MILLISECONDS
           
NONE
           
PERCENT
           
SECONDS
           
TERABITS
           
TERABITS_PER_SECOND
           
TERABYTES
           
TERABYTES_PER_SECOND
           
UNRECOGNIZED
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.