Enum VolumeControlTypeEnum
- java.lang.Object
-
- java.lang.Enum<VolumeControlTypeEnum>
-
- io.github.hapjava.characteristics.impl.televisionspeaker.VolumeControlTypeEnum
-
- All Implemented Interfaces:
CharacteristicEnum,Serializable,Comparable<VolumeControlTypeEnum>
public enum VolumeControlTypeEnum extends Enum<VolumeControlTypeEnum> implements CharacteristicEnum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSOLUTENONERELATIVERELATIVE_WITH_CURRENT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VolumeControlTypeEnumfromCode(Integer code)intgetCode()static VolumeControlTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static VolumeControlTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final VolumeControlTypeEnum NONE
-
RELATIVE
public static final VolumeControlTypeEnum RELATIVE
-
RELATIVE_WITH_CURRENT
public static final VolumeControlTypeEnum RELATIVE_WITH_CURRENT
-
ABSOLUTE
public static final VolumeControlTypeEnum ABSOLUTE
-
-
Method Detail
-
values
public static VolumeControlTypeEnum[] 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 (VolumeControlTypeEnum c : VolumeControlTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VolumeControlTypeEnum valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromCode
public static VolumeControlTypeEnum fromCode(Integer code)
-
getCode
public int getCode()
- Specified by:
getCodein interfaceCharacteristicEnum
-
-