public enum UnitsTemperature extends Enum<UnitsTemperature> implements UnitEnum
Enum Constant and Description |
---|
CELSIUS |
FAHRENHEIT |
KELVIN |
RANKINE |
Modifier and Type | Method and Description |
---|---|
static UnitsTemperature |
bySymbol(String symbol) |
String |
getSymbol() |
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 KELVIN
public static final UnitsTemperature CELSIUS
public static final UnitsTemperature FAHRENHEIT
public static final UnitsTemperature RANKINE
protected String symbol
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 bySymbol(String symbol)
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.