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