Package org.calypsonet.terminal.reader
Enum ObservableCardReader.DetectionMode
- java.lang.Object
-
- java.lang.Enum<ObservableCardReader.DetectionMode>
-
- org.calypsonet.terminal.reader.ObservableCardReader.DetectionMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ObservableCardReader.DetectionMode>
- Enclosing interface:
- ObservableCardReader
public static enum ObservableCardReader.DetectionMode extends java.lang.Enum<ObservableCardReader.DetectionMode>
Card detection management options to be applied after processing a card.- Since:
- 1.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REPEATING
Continue waiting for the insertion of a next card.SINGLESHOT
Stop and wait for a restart signal.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObservableCardReader.DetectionMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ObservableCardReader.DetectionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPEATING
public static final ObservableCardReader.DetectionMode REPEATING
Continue waiting for the insertion of a next card.- Since:
- 1.0.0
-
SINGLESHOT
public static final ObservableCardReader.DetectionMode SINGLESHOT
Stop and wait for a restart signal.- Since:
- 1.0.0
-
-
Method Detail
-
values
public static ObservableCardReader.DetectionMode[] 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 (ObservableCardReader.DetectionMode c : ObservableCardReader.DetectionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ObservableCardReader.DetectionMode 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
-
-