public enum UnitsTemperature extends Enum<UnitsTemperature> implements Enumeration
Modifier and Type | Method and Description |
---|---|
static <T extends Number> |
create(T newValue,
UnitsTemperature newUnit) |
static <T extends PrimitiveNumber> |
create(T newValue,
UnitsTemperature newUnit) |
static UnitsTemperature |
fromString(String value) |
String |
getValue() |
String |
toString() |
static UnitsTemperature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitsTemperature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitsTemperature DEGREEC
public static final UnitsTemperature DEGREEF
public static final UnitsTemperature K
public static final UnitsTemperature DEGREER
private final String value
public static UnitsTemperature[] values()
for (UnitsTemperature c : UnitsTemperature.values()) System.out.println(c);
public static UnitsTemperature 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 UnitsTemperature fromString(String value) throws EnumerationException
EnumerationException
public String getValue()
public String toString()
toString
in class Enum<UnitsTemperature>
public static <T extends PrimitiveNumber> Temperature create(T newValue, UnitsTemperature newUnit)
public static <T extends Number> Temperature create(T newValue, UnitsTemperature newUnit)
Copyright © 2016 Open Microscopy Environment