Constructor and Description |
---|
CollectionStore(java.util.Collection<T> collection)
Basic constructor.
|
Modifier and Type | Method and 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.
|
public CollectionStore(java.util.Collection<T> collection)
collection
- - initial contents for the store, this is copied.public java.util.Collection<T> getMatches(Selector<T> selector)
getMatches
in interface Store<T>
selector
- the selector to match against.