Modifier and Type | Field and Description |
---|---|
byte |
bVal |
static double |
CperF |
static double |
zeroCelsiusF |
static double |
zeroCelsiusK |
Modifier and Type | Method and Description |
---|---|
double |
fromCelsius(double celsius) |
double |
fromFarenheit(double farenheit) |
double |
fromKelvin(double kelvin) |
double |
fromUnit(TempUnit him,
double his) |
static TempUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TempUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TempUnit CELSIUS
public static final TempUnit FARENHEIT
public static final TempUnit KELVIN
public final byte bVal
public static final double zeroCelsiusK
public static final double zeroCelsiusF
public static final double CperF
public static TempUnit[] values()
for (TempUnit c : TempUnit.values()) System.out.println(c);
public static TempUnit 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 double fromCelsius(double celsius)
public double fromKelvin(double kelvin)
public double fromFarenheit(double farenheit)
public double fromUnit(TempUnit him, double his)