public enum ThermometerUnit extends Enum<ThermometerUnit>
Enum Constant and Description |
---|
Celsius |
Fahrenheit |
Kelvin |
None |
Modifier and Type | Method and Description |
---|---|
int |
getUnitConstant() |
static ThermometerUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThermometerUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThermometerUnit None
public static final ThermometerUnit Fahrenheit
public static final ThermometerUnit Celsius
public static final ThermometerUnit Kelvin
public static ThermometerUnit[] values()
for (ThermometerUnit c : ThermometerUnit.values()) System.out.println(c);
public static ThermometerUnit 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 int getUnitConstant()
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.