org.apache.commons.collections.iterators
Class FilterListIterator
- ListIterator
public class 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.
$Revision: 1.1.2.1 $ $Date: 2004/05/22 12:14:04 $
add , getListIterator , hasNext , hasPrevious , next , nextIndex , previous , previousIndex , remove , set , setListIterator |
FilterListIterator
public FilterListIterator()
FilterListIterator
public FilterListIterator(ListIterator iterator)
Constructs a new
FilterListIterator
that will not
function until
setPredicate
is invoked.
iterator
- the iterator to use
FilterListIterator
public FilterListIterator(ListIterator iterator,
Predicate predicate)
Constructs a new FilterListIterator
.
iterator
- the iterator to usepredicate
- the predicate to use
FilterListIterator
public FilterListIterator(Predicate predicate)
Constructs a new
FilterListIterator
that will not
function until
setListIterator
is invoked.
predicate
- the predicate to use.
getPredicate
public Predicate getPredicate()
Getter for the predicate property.
- value of the predicate property.
setPredicate
public void setPredicate(Predicate predicate)
Setter for the predicate property.
predicate
- new value for the predicate property.
Copyright © 2001-2004 Apache Software Foundation. Documenation generated ${TODAY}.