public final class CardSelectionsResult
extends java.lang.Object
Embeds a map of AbstractSmartCard. At most one of these matching card is active.
Provides a set of methods to retrieve the active selection (getActiveSmartCard) or a particular
matching card specified by its index.
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveSelectionIndex()
Gets the index of the active selection
|
AbstractSmartCard |
getActiveSmartCard()
Get the active matching card.
|
AbstractSmartCard |
getSmartCard(int selectionIndex)
Gets the
AbstractSmartCard for the specified index. |
java.util.Map<java.lang.Integer,AbstractSmartCard> |
getSmartCards()
Gets all the
AbstractSmartCard corresponding to all selection cases in a map where the
key is the selection index. |
boolean |
hasActiveSelection()
Tells if the current selection process resulted in an active selection.
|
boolean |
hasSelectionMatched(int selectionIndex)
Get the matching status of a selection case for which the index is provided.
|
public AbstractSmartCard getActiveSmartCard()
java.lang.IllegalStateException - if no active matching card is foundpublic java.util.Map<java.lang.Integer,AbstractSmartCard> getSmartCards()
AbstractSmartCard corresponding to all selection cases in a map where the
key is the selection index.public AbstractSmartCard getSmartCard(int selectionIndex)
AbstractSmartCard for the specified index.
Returns null if no AbstractSmartCard was found.
selectionIndex - the selection indexAbstractSmartCard or nullpublic boolean hasActiveSelection()
public boolean hasSelectionMatched(int selectionIndex)
selectionIndex - the selection indexpublic int getActiveSelectionIndex()
java.lang.IllegalStateException - if there is no active selection