Package org.bouncycastle.util
Class CollectionStore<T>
java.lang.Object
org.bouncycastle.util.CollectionStore<T>
A simple collection backed store.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMatches
(Selector<T> selector) Return the matches in the collection for the passed in selector.iterator()
Returns an iterator over a set of elements of type T.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CollectionStore
Basic constructor.- Parameters:
collection
- - initial contents for the store, this is copied.
-
-
Method Details
-
getMatches
Return the matches in the collection for the passed in selector.- Specified by:
getMatches
in interfaceStore<T>
- Parameters:
selector
- the selector to match against.- Returns:
- a possibly empty collection of matching objects.
-
iterator
Description copied from interface:Iterable
Returns an iterator over a set of elements of type T.
-