Package io.anyline.nfc.bouncycastle.util
Class CollectionStore
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.util.Store
,java.lang.Iterable
public class CollectionStore<T> implements Store<T>, Iterable<T>
A simple collection backed store.
-
-
Constructor Summary
Constructors Constructor Description CollectionStore(Collection<T> collection)
Basic constructor.
-
Method Summary
Modifier and Type Method Description Collection<T>
getMatches(Selector<T> selector)
Return the matches in the collection for the passed in selector. Iterator<T>
iterator()
-
-
Constructor Detail
-
CollectionStore
CollectionStore(Collection<T> collection)
Basic constructor.- Parameters:
collection
- - initial contents for the store, this is copied.
-
-
Method Detail
-
getMatches
Collection<T> getMatches(Selector<T> selector)
Return the matches in the collection for the passed in selector.
- Parameters:
selector
- the selector to match against.- Returns:
a possibly empty collection of matching objects.
-
-
-
-