Package 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.
-
-
Constructor Summary
Constructors Constructor Description DeciderFilter(Predicate<T> decider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<T>
filter(Iterator<T> objects)
INTERNAL: Filters the input iterator and returns a collection containing a subset of the iterator's elements.
-