org.apache.commons.collections
Class FilterIterator

java.lang.Object
  |
  +--org.apache.commons.collections.iterators.ProxyIterator
        |
        +--org.apache.commons.collections.iterators.FilterIterator
              |
              +--org.apache.commons.collections.FilterIterator
All Implemented Interfaces:
java.util.Iterator

Deprecated. this class has been moved to the iterators subpackage

public class FilterIterator
extends 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.

Since:
1.0
Author:
James Strachan, Jan Sorensen

Constructor Summary
FilterIterator()
          Deprecated. Constructs a new FilterIterator that will not function until setIterator is invoked.
FilterIterator(java.util.Iterator iterator)
          Deprecated. Constructs a new FilterIterator that will not function until setPredicate is invoked.
FilterIterator(java.util.Iterator iterator, Predicate predicate)
          Deprecated. Constructs a new FilterIterator that will use the given iterator and predicate.
 
Methods inherited from class org.apache.commons.collections.iterators.FilterIterator
getPredicate, hasNext, next, remove, setPredicate
 
Methods inherited from class org.apache.commons.collections.iterators.ProxyIterator
getIterator, setIterator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterIterator

public FilterIterator()
Deprecated. 
Constructs a new FilterIterator that will not function until setIterator is invoked.


FilterIterator

public FilterIterator(java.util.Iterator iterator)
Deprecated. 
Constructs a new FilterIterator that will not function until setPredicate is invoked.

Parameters:
iterator - the iterator to use

FilterIterator

public FilterIterator(java.util.Iterator iterator,
                      Predicate predicate)
Deprecated. 
Constructs a new FilterIterator that will use the given iterator and predicate.

Parameters:
iterator - the iterator to use
predicate - the predicate to use


Copyright © 2001-2004 The Apache Software Foundation. All Rights Reserved.