public static enum TemperatureRange.TemperatureScale extends java.lang.Enum<TemperatureRange.TemperatureScale>
| Enum Constant and Description |
|---|
CELSIUS |
FAHRENHEIT |
KELVIN |
| Modifier and Type | Method and Description |
|---|---|
float |
convertFromKelvin(float tempIn) |
java.lang.String |
symbol() |
static TemperatureRange.TemperatureScale |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TemperatureRange.TemperatureScale[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TemperatureRange.TemperatureScale KELVIN
public static final TemperatureRange.TemperatureScale CELSIUS
public static final TemperatureRange.TemperatureScale FAHRENHEIT
public static TemperatureRange.TemperatureScale[] values()
for (TemperatureRange.TemperatureScale c : TemperatureRange.TemperatureScale.values()) System.out.println(c);
public static TemperatureRange.TemperatureScale valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic float convertFromKelvin(float tempIn)
public java.lang.String symbol()