public enum UnitsTemperature extends Enum<UnitsTemperature> implements Enumeration
Enum Constant and Description |
---|
CELSIUS
degree Celsius unit.
|
FAHRENHEIT
degree Fahrenheit unit.
|
KELVIN
Kelvin unit.
|
RANKINE
degree Rankine unit.
|
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 CELSIUS
public static final UnitsTemperature FAHRENHEIT
public static final UnitsTemperature KELVIN
public static final UnitsTemperature RANKINE
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