org.apache.commons.collections

Class FilterListIterator

Implemented Interfaces:
ListIterator

public class FilterListIterator
extends FilterListIterator

A proxy ListIterator which takes a Predicate instance to filter out objects from an underlying ListIterator instance. Only objects for which the specified Predicate evaluates to true are returned by the iterator.
Version:
$Revision: 1.7.2.1 $ $Date: 2004/05/22 12:14:02 $
Author:
Rodney Waldhoff
Since:
2.0

Constructor Summary

FilterListIterator()
Constructs a new FilterListIterator that will not function until setListIterator and setPredicate are invoked.
FilterListIterator(ListIterator iterator)
Constructs a new FilterListIterator that will not function until setPredicate is invoked.
FilterListIterator(ListIterator iterator, Predicate predicate)
Constructs a new FilterListIterator.
FilterListIterator(Predicate predicate)
Constructs a new FilterListIterator that will not function until setListIterator is invoked.

Method Summary

Methods inherited from class org.apache.commons.collections.iterators.FilterListIterator

add, getPredicate, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set, setPredicate

Methods inherited from class org.apache.commons.collections.iterators.ProxyListIterator

add, getListIterator, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set, setListIterator

Constructor Details

FilterListIterator

public FilterListIterator()

FilterListIterator

public FilterListIterator(ListIterator iterator)
Parameters:
iterator - the iterator to use

FilterListIterator

public FilterListIterator(ListIterator iterator,
                          Predicate predicate)
Constructs a new FilterListIterator.
Parameters:
iterator - the iterator to use
predicate - the predicate to use

FilterListIterator

public FilterListIterator(Predicate predicate)
Constructs a new FilterListIterator that will not function until setListIterator is invoked.
Parameters:
predicate - the predicate to use.

Copyright © 2001-2004 Apache Software Foundation. Documenation generated ${TODAY}.