Enum Class CardTerminals.State
- All Implemented Interfaces:
- Enclosing class:
public static enum CardTerminals.State extends Enum<CardTerminals.State>
Enumeration of attributes of a CardTerminal. It is used as a parameter to the CardTerminals.list() method.
Nested Class Summary
Nested classes/interfaces declared in class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant SummaryEnum 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.
Method SummaryModifier and TypeMethodDescription
static CardTerminals.StateReturns the enum constant of this class with the specified name.
values()Returns an array containing the constants of this enum class, in the order they are declared.
Methods declared in class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
ALLpublic static final CardTerminals.State ALLAll CardTerminals.
CARD_PRESENTpublic static final CardTerminals.State CARD_PRESENTCardTerminals in which a card is present.
CARD_ABSENTpublic static final CardTerminals.State CARD_ABSENTCardTerminals in which a card is not present.
CARD_INSERTIONpublic static final CardTerminals.State CARD_INSERTIONCardTerminals for which a card insertion was detected during the latest call to waitForChange() call.
CARD_REMOVALpublic static final CardTerminals.State CARD_REMOVAL
valuespublic static CardTerminals.State values()Returns an array containing the constants of this enum class, in the order they are declared.
- an array containing the constants of this enum class, in the order they are declared
valueOfpublic static CardTerminals.State valueOf
(String name)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.)
name- the name of the enum constant to be returned.
- the enum constant with the specified name
IllegalArgumentException- if this enum class has no constant with the specified name
NullPointerException- if the argument is null