public enum TemperatureState extends java.lang.Enum<TemperatureState>
| Enum Constant and Description |
|---|
COOL |
MELTING |
OPERATING_TEMPERATURE |
OVERHEATING |
RUNNING_HOT |
UNKNOWN |
WARMED_UP |
| Modifier and Type | Method and Description |
|---|---|
static TemperatureState |
getState(double heat,
double maxHeat) |
static TemperatureState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TemperatureState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TemperatureState UNKNOWN
public static final TemperatureState COOL
public static final TemperatureState WARMED_UP
public static final TemperatureState OPERATING_TEMPERATURE
public static final TemperatureState RUNNING_HOT
public static final TemperatureState OVERHEATING
public static final TemperatureState MELTING
public static TemperatureState[] values()
for (TemperatureState c : TemperatureState.values()) System.out.println(c);
public static TemperatureState 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 static TemperatureState getState(double heat, double maxHeat)