public class AcceptOnceCollectionFilter<T> extends Object implements CollectionFilter<T>
CollectionFilter that remembers the elements passed in
the previous invocation in order to avoid returning those elements more than once.| Constructor and Description |
|---|
AcceptOnceCollectionFilter() |
| Modifier and Type | Method and Description |
|---|---|
Collection<T> |
filter(Collection<T> unfilteredElements) |
public Collection<T> filter(Collection<T> unfilteredElements)
filter in interface CollectionFilter<T>