public enum ScaleConstants extends Enum<ScaleConstants>
| Enum Constant and Description |
|---|
SCALE_CELSIUS |
SCALE_DAY |
SCALE_FAHRENHEIT |
SCALE_GIGA |
SCALE_HOUR |
SCALE_JIFFY |
SCALE_KELVIN |
SCALE_KILO |
SCALE_MEGA |
SCALE_MICRO |
SCALE_MILLI |
SCALE_MIN |
SCALE_NANO |
SCALE_NONE |
SCALE_PETA |
SCALE_SEC |
SCALE_TERA |
SCALE_WEEK |
SCALE_YEAR |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
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 nameNullPointerException - 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 - Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.