org.rhq.core.clientapi.util.units
Enum UnitsConstants
java.lang.Object
java.lang.Enum<UnitsConstants>
org.rhq.core.clientapi.util.units.UnitsConstants
- All Implemented Interfaces:
- Serializable, Comparable<UnitsConstants>
public enum UnitsConstants
- extends Enum<UnitsConstants>
Various constants that are internally used for validation and scaling of numbers, time ranges etc.
|
Method Summary |
static UnitsConstants |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static UnitsConstants[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
UNIT_NONE
public static final UnitsConstants UNIT_NONE
UNIT_BYTES
public static final UnitsConstants UNIT_BYTES
UNIT_BITS
public static final UnitsConstants UNIT_BITS
UNIT_DURATION
public static final UnitsConstants UNIT_DURATION
UNIT_DATE
public static final UnitsConstants UNIT_DATE
UNIT_PERCENTAGE
public static final UnitsConstants UNIT_PERCENTAGE
UNIT_TEMPERATURE
public static final UnitsConstants UNIT_TEMPERATURE
values
public static UnitsConstants[] 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 (UnitsConstants c : UnitsConstants.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static UnitsConstants 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-2009 Red Hat, Inc.. All Rights Reserved.