|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ScaleConstants>
org.rhq.core.clientapi.util.units.ScaleConstants
public enum ScaleConstants
Constants that deal with scaling of units.
| Method Summary | |
|---|---|
static EnumSet<ScaleConstants> |
getAllScales()
Return an EnumSet that conatins all SCALE_ enum constants |
static EnumSet<ScaleConstants> |
getBinaryScaleSet()
Return an EnumSet that contain all SCALE_ enum constants dealing with binary scaling |
static ScaleConstants |
getConstantWithOrdinal(int ord)
Return the UnitsConstants constant that has ord as its ordinal value |
static EnumSet<ScaleConstants> |
getTemperatureSet()
|
static EnumSet<ScaleConstants> |
getTimeSet()
Return an EnumSet that contain all SCALE_ enum constants dealing with time |
static ScaleConstants |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ScaleConstants[] |
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 |
|---|
public static final ScaleConstants SCALE_NONE
public static final ScaleConstants SCALE_KILO
public static final ScaleConstants SCALE_MEGA
public static final ScaleConstants SCALE_GIGA
public static final ScaleConstants SCALE_TERA
public static final ScaleConstants SCALE_PETA
public static final ScaleConstants SCALE_YEAR
public static final ScaleConstants SCALE_WEEK
public static final ScaleConstants SCALE_DAY
public static final ScaleConstants SCALE_HOUR
public static final ScaleConstants SCALE_MIN
public static final ScaleConstants SCALE_SEC
public static final ScaleConstants SCALE_JIFFY
public static final ScaleConstants SCALE_MILLI
public static final ScaleConstants SCALE_MICRO
public static final ScaleConstants SCALE_NANO
public static final ScaleConstants SCALE_KELVIN
public static final ScaleConstants SCALE_CELSIUS
public static final ScaleConstants SCALE_FAHRENHEIT
| Method Detail |
|---|
public static ScaleConstants[] values()
for (ScaleConstants c : ScaleConstants.values()) System.out.println(c);
public static ScaleConstants valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static EnumSet<ScaleConstants> getBinaryScaleSet()
public static EnumSet<ScaleConstants> getTimeSet()
public static EnumSet<ScaleConstants> getTemperatureSet()
public static EnumSet<ScaleConstants> getAllScales()
public static ScaleConstants getConstantWithOrdinal(int ord)
ord -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||