- All Implemented Interfaces:
Serializable
,Comparable<IrReceiverComponent.Key>
,Constable
- Enclosing class:
- IrReceiverComponent
Enumeration which represents all known keycodes for the bundled CrowPi IR remote
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IrReceiverComponent.Key
fromCode
(byte code) Returns the first key which matches the passed key code or null if no match is found.byte
getCode()
Returns the keycode of the key.Returns the description of the key.toString()
static IrReceiverComponent.Key
Returns the enum constant of this class with the specified name.static IrReceiverComponent.Key[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CH_MINUS
-
CH
-
CH_PLUS
-
PREV
-
NEXT
-
PLAY_PAUSE
-
VOL_MINUS
-
VOL_PLUS
-
EQ
-
ZERO
-
HUNDRED_PLUS
-
TWO_HUNDRED_PLUS
-
ONE
-
TWO
-
THREE
-
FOUR
-
FIVE
-
SIX
-
SEVEN
-
EIGHT
-
NINE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromCode
Returns the first key which matches the passed key code or null if no match is found.- Parameters:
code
- Keycode as byte- Returns:
- Matched key if found or null if not found
-
getCode
public byte getCode()Returns the keycode of the key.- Returns:
- Keycode as byte
-
getDescription
Returns the description of the key.- Returns:
- Human-readable key description matching the labels on the remote
-
toString
- Overrides:
toString
in classEnum<IrReceiverComponent.Key>
-