- All Implemented Interfaces:
Serializable
,Comparable<CardTerminals.State>
,Constable
- Enclosing class:
CardTerminals
Enumeration of attributes of a CardTerminal.
It is used as a parameter to the CardTerminals.list() method.
- Since:
- 1.6
-
Nested Class Summary
Nested classes/interfaces declared in class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAll CardTerminals.CardTerminals in which a card is not present.CardTerminals for which a card insertion was detected during the latest call to waitForChange() call.CardTerminals in which a card is present.CardTerminals for which a card removal was detected during the latest call to waitForChange() call. -
Method Summary
Modifier and TypeMethodDescriptionstatic CardTerminals.State
Returns the enum constant of this class with the specified name.static CardTerminals.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
All CardTerminals. -
CARD_PRESENT
CardTerminals in which a card is present. -
CARD_ABSENT
CardTerminals in which a card is not present. -
CARD_INSERTION
CardTerminals for which a card insertion was detected during the latest call to waitForChange() call. -
CARD_REMOVAL
CardTerminals for which a card removal was detected during the latest call to waitForChange() call.
-
-
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
-