org.rhq.core.domain.measurement
Enum MeasurementUnits.Scale

java.lang.Object
  extended by java.lang.Enum<MeasurementUnits.Scale>
      extended by org.rhq.core.domain.measurement.MeasurementUnits.Scale
All Implemented Interfaces:
Serializable, Comparable<MeasurementUnits.Scale>
Enclosing class:
MeasurementUnits

public static enum MeasurementUnits.Scale
extends Enum<MeasurementUnits.Scale>


Enum Constant Summary
CENTI
           
DAY
           
GIGA
           
HECTO
           
HOUR
           
JIFFY
           
KILO
           
MEGA
           
MICRO
           
MILLI
           
MIN
           
NANO
           
ONE
           
PETA
           
SEC
           
TERA
           
WEEK
           
YEAR
           
 
Method Summary
static MeasurementUnits.Scale valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MeasurementUnits.Scale[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CENTI

public static final MeasurementUnits.Scale CENTI

ONE

public static final MeasurementUnits.Scale ONE

HECTO

public static final MeasurementUnits.Scale HECTO

KILO

public static final MeasurementUnits.Scale KILO

MEGA

public static final MeasurementUnits.Scale MEGA

GIGA

public static final MeasurementUnits.Scale GIGA

TERA

public static final MeasurementUnits.Scale TERA

PETA

public static final MeasurementUnits.Scale PETA

JIFFY

public static final MeasurementUnits.Scale JIFFY

NANO

public static final MeasurementUnits.Scale NANO

MICRO

public static final MeasurementUnits.Scale MICRO

MILLI

public static final MeasurementUnits.Scale MILLI

SEC

public static final MeasurementUnits.Scale SEC

MIN

public static final MeasurementUnits.Scale MIN

HOUR

public static final MeasurementUnits.Scale HOUR

DAY

public static final MeasurementUnits.Scale DAY

WEEK

public static final MeasurementUnits.Scale WEEK

YEAR

public static final MeasurementUnits.Scale YEAR
Method Detail

values

public static MeasurementUnits.Scale[] 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 (MeasurementUnits.Scale c : MeasurementUnits.Scale.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MeasurementUnits.Scale 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


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.