Package org.eclipse.keypop.reader
Enum CardReaderEvent.Type
- java.lang.Object
-
- java.lang.Enum<CardReaderEvent.Type>
-
- org.eclipse.keypop.reader.CardReaderEvent.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CardReaderEvent.Type>
- Enclosing interface:
- CardReaderEvent
public static enum CardReaderEvent.Type extends java.lang.Enum<CardReaderEvent.Type>
Possible card events.- Since:
- 1.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CARD_INSERTED
A card has been inserted with or without specific selection.CARD_MATCHED
A card has been inserted that matches the selection.CARD_REMOVED
The card has been removed from the reader.UNAVAILABLE
The reader has become unavailable.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CardReaderEvent.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CardReaderEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CARD_INSERTED
public static final CardReaderEvent.Type CARD_INSERTED
A card has been inserted with or without specific selection.- Since:
- 1.0.0
-
CARD_MATCHED
public static final CardReaderEvent.Type CARD_MATCHED
A card has been inserted that matches the selection.- Since:
- 1.0.0
-
CARD_REMOVED
public static final CardReaderEvent.Type CARD_REMOVED
The card has been removed from the reader.- Since:
- 1.0.0
-
UNAVAILABLE
public static final CardReaderEvent.Type UNAVAILABLE
The reader has become unavailable.- Since:
- 1.0.0
-
-
Method Detail
-
values
public static CardReaderEvent.Type[] 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 (CardReaderEvent.Type c : CardReaderEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CardReaderEvent.Type 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
-
-