public static enum ThermostatDevice.SystemMode extends Enum<ThermostatDevice.SystemMode>
Enum Constant and Description |
---|
AUTO |
COOL |
DRY |
EMERGENCY_HEATING |
FAN_ONLY |
HEAT |
OFF |
PRE_COOLING |
SLEEP |
Modifier and Type | Method and Description |
---|---|
static String |
listModes() |
String |
toString() |
static ThermostatDevice.SystemMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThermostatDevice.SystemMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThermostatDevice.SystemMode OFF
public static final ThermostatDevice.SystemMode AUTO
public static final ThermostatDevice.SystemMode COOL
public static final ThermostatDevice.SystemMode HEAT
public static final ThermostatDevice.SystemMode EMERGENCY_HEATING
public static final ThermostatDevice.SystemMode PRE_COOLING
public static final ThermostatDevice.SystemMode FAN_ONLY
public static final ThermostatDevice.SystemMode DRY
public static final ThermostatDevice.SystemMode SLEEP
public static ThermostatDevice.SystemMode[] values()
for (ThermostatDevice.SystemMode c : ThermostatDevice.SystemMode.values()) System.out.println(c);
public static ThermostatDevice.SystemMode 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 String listModes()
public String toString()
toString
in class Enum<ThermostatDevice.SystemMode>
Copyright © 2019. All rights reserved.