Enum CurrentHeaterCoolerStateEnum
- java.lang.Object
-
- java.lang.Enum<CurrentHeaterCoolerStateEnum>
-
- io.github.hapjava.characteristics.impl.heatercooler.CurrentHeaterCoolerStateEnum
-
- All Implemented Interfaces:
CharacteristicEnum
,java.io.Serializable
,java.lang.Comparable<CurrentHeaterCoolerStateEnum>
public enum CurrentHeaterCoolerStateEnum extends java.lang.Enum<CurrentHeaterCoolerStateEnum> implements CharacteristicEnum
0 ”Inactive” 1 ”Idle” 2 ”Heating” 3 ”Cooling”
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CurrentHeaterCoolerStateEnum
fromCode(java.lang.Integer code)
int
getCode()
static CurrentHeaterCoolerStateEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CurrentHeaterCoolerStateEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INACTIVE
public static final CurrentHeaterCoolerStateEnum INACTIVE
-
IDLE
public static final CurrentHeaterCoolerStateEnum IDLE
-
HEATING
public static final CurrentHeaterCoolerStateEnum HEATING
-
COOLING
public static final CurrentHeaterCoolerStateEnum COOLING
-
-
Method Detail
-
values
public static CurrentHeaterCoolerStateEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CurrentHeaterCoolerStateEnum c : CurrentHeaterCoolerStateEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CurrentHeaterCoolerStateEnum valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromCode
public static CurrentHeaterCoolerStateEnum fromCode(java.lang.Integer code)
-
getCode
public int getCode()
- Specified by:
getCode
in interfaceCharacteristicEnum
-
-