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