org.apache.commons.collections
Class FilterIterator
- Iterator
public class FilterIterator
A Proxy
Iterator which takes a
Predicate instance to filter
out objects from an underlying
Iterator instance.
Only objects for which the
specified
Predicate evaluates to
true are
returned.
FilterIterator
public FilterIterator()
Constructs a new
FilterIterator that will not function
until
setIterator is invoked.
FilterIterator
public FilterIterator(Iterator iterator)
Constructs a new
FilterIterator that will not function
until
setPredicate is invoked.
iterator - the iterator to use
FilterIterator
public FilterIterator(Iterator iterator,
Predicate predicate) Constructs a new FilterIterator that will use the
given iterator and predicate.
iterator - the iterator to usepredicate - the predicate to use
Copyright © 2001-2004 Apache Software Foundation. Documenation generated ${TODAY}.