org.apache.commons.collections
Class FilterListIterator
java.lang.Object
|
+--org.apache.commons.collections.ProxyListIterator
|
+--org.apache.commons.collections.FilterListIterator
- All Implemented Interfaces:
- Iterator, ListIterator
- public class FilterListIterator
- extends ProxyListIterator
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.2 $ $Date: 2002/02/26 17:28:55 $
- Author:
- Rodney Waldhoff
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterListIterator
public FilterListIterator()
FilterListIterator
public FilterListIterator(ListIterator iterator)
FilterListIterator
public FilterListIterator(ListIterator iterator,
Predicate predicate)
FilterListIterator
public FilterListIterator(Predicate predicate)
add
public void add(Object o)
- Not supported.
- Overrides:
add
in class ProxyListIterator
getPredicate
public Predicate getPredicate()
- Getter for the predicate property.
- Returns:
- value of the predicate property.
hasNext
public boolean hasNext()
- Overrides:
hasNext
in class ProxyListIterator
hasPrevious
public boolean hasPrevious()
- Overrides:
hasPrevious
in class ProxyListIterator
next
public Object next()
- Overrides:
next
in class ProxyListIterator
nextIndex
public int nextIndex()
- Overrides:
nextIndex
in class ProxyListIterator
previous
public Object previous()
- Overrides:
previous
in class ProxyListIterator
previousIndex
public int previousIndex()
- Overrides:
previousIndex
in class ProxyListIterator
remove
public void remove()
- Not supported.
- Overrides:
remove
in class ProxyListIterator
set
public void set(Object o)
- Not supported.
- Overrides:
set
in class ProxyListIterator
setPredicate
public void setPredicate(Predicate predicate)
- Setter for the predicate property.
- Parameters:
predicate
- new value for the predicate property.
Copyright © 2001 Apache Software Foundation. Documenation generated April 2 2002.