org.bouncycastle.util

Class CollectionStore

public class CollectionStore extends Object implements Store

A simple collection backed store.
Constructor Summary
CollectionStore(Collection collection)
Basic constructor.
Method Summary
CollectiongetMatches(Selector selector)
Return the matches in the collection for the passed in selector.

Constructor Detail

CollectionStore

public CollectionStore(Collection collection)
Basic constructor.

Parameters: collection - initial contents for the store, this is copied.

Method Detail

getMatches

public Collection getMatches(Selector 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.