net.ontopia.utils
Class DeciderFilter<T>
java.lang.Object
net.ontopia.utils.DeciderFilter<T>
- All Implemented Interfaces:
- FilterIF<T>
public class DeciderFilter<T>
- extends Object
- implements FilterIF<T>
INTERNAL: Filter that filters a collection using a decider. The
decider is applied to the individual objects in the collection. If
the object is accepted by the decider it will become part of the
result.
Method Summary |
Collection<T> |
filter(Iterator<T> objects)
INTERNAL: Filters the input iterator and returns a collection
containing a subset of the iterator's elements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
decider
protected DeciderIF<T> decider
DeciderFilter
public DeciderFilter(DeciderIF<T> decider)
filter
public Collection<T> filter(Iterator<T> objects)
- Description copied from interface:
FilterIF
- INTERNAL: Filters the input iterator and returns a collection
containing a subset of the iterator's elements.
- Specified by:
filter
in interface FilterIF<T>
Copyright © 2000-2012 Ontopia.