public enum UnitsConstants extends Enum<UnitsConstants>
| Enum Constant and Description |
|---|
UNIT_BITS |
UNIT_BYTES |
UNIT_DATE |
UNIT_DURATION |
UNIT_NONE |
UNIT_PERCENTAGE |
UNIT_TEMPERATURE |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final UnitsConstants UNIT_NONE
public static final UnitsConstants UNIT_BYTES
public static final UnitsConstants UNIT_BITS
public static final UnitsConstants UNIT_DURATION
public static final UnitsConstants UNIT_DATE
public static final UnitsConstants UNIT_PERCENTAGE
public static final UnitsConstants UNIT_TEMPERATURE
public static UnitsConstants[] values()
for (UnitsConstants c : UnitsConstants.values()) System.out.println(c);
public static UnitsConstants 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 nullCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.