Enum InputDeviceTypeEnum
- java.lang.Object
-
- java.lang.Enum<InputDeviceTypeEnum>
-
- io.github.hapjava.characteristics.impl.inputsource.InputDeviceTypeEnum
-
- All Implemented Interfaces:
CharacteristicEnum,Serializable,Comparable<InputDeviceTypeEnum>
public enum InputDeviceTypeEnum extends Enum<InputDeviceTypeEnum> implements CharacteristicEnum
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InputDeviceTypeEnumfromCode(Integer code)intgetCode()static InputDeviceTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static InputDeviceTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OTHER
public static final InputDeviceTypeEnum OTHER
-
TV
public static final InputDeviceTypeEnum TV
-
RECORDING
public static final InputDeviceTypeEnum RECORDING
-
TUNER
public static final InputDeviceTypeEnum TUNER
-
PLAYBACK
public static final InputDeviceTypeEnum PLAYBACK
-
AUDIO_SYSTEM
public static final InputDeviceTypeEnum AUDIO_SYSTEM
-
-
Method Detail
-
values
public static InputDeviceTypeEnum[] 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 (InputDeviceTypeEnum c : InputDeviceTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InputDeviceTypeEnum 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 InputDeviceTypeEnum fromCode(Integer code)
-
getCode
public int getCode()
- Specified by:
getCodein interfaceCharacteristicEnum
-
-