Package org.bouncycastle.util
Class CollectionStore<T>
- java.lang.Object
-
- org.bouncycastle.util.CollectionStore<T>
-
-
Constructor Summary
Constructors Constructor Description CollectionStore(java.util.Collection<T> collection)
Basic constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<T>
getMatches(Selector<T> selector)
Return the matches in the collection for the passed in selector.java.util.Iterator<T>
iterator()
Returns an iterator over a set of elements of type T.
-
-
-
Constructor Detail
-
CollectionStore
public CollectionStore(java.util.Collection<T> collection)
Basic constructor.- Parameters:
collection
- - initial contents for the store, this is copied.
-
-
Method Detail
-
getMatches
public java.util.Collection<T> getMatches(Selector<T> selector)
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.
-
-