org.bouncycastle.util

Class CollectionStore

Implemented Interfaces:
Store

public class CollectionStore
extends java.lang.Object
implements Store

A simple collection backed store.

Constructor Summary

CollectionStore(Collection collection)
Basic constructor.

Method Summary

Collection
getMatches(Selector selector)
Return the matches in the collection for the passed in selector.

Constructor Details

CollectionStore

public CollectionStore(Collection collection)
Basic constructor.
Parameters:
collection - - initial contents for the store, this is copied.

Method Details

getMatches

public Collection getMatches(Selector selector)
Return the matches in the collection for the passed in selector.
Specified by:
getMatches in interface Store
Parameters:
selector - the selector to match against.
Returns:
a possibly empty collection of matching objects.