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
Modifier and TypeMethodDescriptionint
Gets the index of the active selection if any.Gets the active matching card.Gets allSmartCard
corresponding to all successful selection cases in a map for which the key is the selection index provided by theCardSelectionManager.prepareSelection(CardSelector, CardSelectionExtension)
method.
-
Method Details
-
getSmartCards
Gets allSmartCard
corresponding to all successful selection cases in a map for which the key is the selection index provided by theCardSelectionManager.prepareSelection(CardSelector, CardSelectionExtension)
method.- Returns:
- A non-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
-