Interface CardSelectionResult
-
public interface CardSelectionResult
Result of a selection process.Each selection case prepared with the card selection manager is associated with an index corresponding to its rank in the order of preparation.
The same index is used here to find out which selection cases were successful.
However, only one case will correspond to the selected card state. The getters of this interface allow to make use of these results according to the configurations and the needs of the application.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getActiveSelectionIndex()
Gets the index of the active selection if any.SmartCard
getActiveSmartCard()
Gets the active matching card.java.util.Map<java.lang.Integer,SmartCard>
getSmartCards()
Gets allSmartCard
corresponding to all successful selection cases in a map for which the key is the selection index provided by theCardSelectionManager.prepareSelection(CardSelection)
method.
-
-
-
Method Detail
-
getSmartCards
java.util.Map<java.lang.Integer,SmartCard> getSmartCards()
Gets allSmartCard
corresponding to all successful selection cases in a map for which the key is the selection index provided by theCardSelectionManager.prepareSelection(CardSelection)
method.- Returns:
- A not null but possibly empty map.
- Since:
- 1.0.0
-
getActiveSmartCard
SmartCard getActiveSmartCard()
Gets the active matching card. I.e. the card that has been selected.- Returns:
- Null if there is no active card.
- Since:
- 1.0.0
-
getActiveSelectionIndex
int getActiveSelectionIndex()
Gets the index of the active selection if any.- Returns:
- A positive value if there is an active selection, -1 if there is no active selection.
- Since:
- 1.0.0
-
-