|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.collections.iterators.ProxyListIterator | +--org.apache.commons.collections.iterators.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.
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 | |
void |
add(Object o)
Not supported. |
Predicate |
getPredicate()
Getter for the predicate property. |
boolean |
hasNext()
Invokes the underlying ListIterator.hasNext() method. |
boolean |
hasPrevious()
Invokes the underlying ListIterator.hasPrevious() method. |
Object |
next()
Invokes the underlying ListIterator.next() method. |
int |
nextIndex()
Invokes the underlying ListIterator.nextIndex() method. |
Object |
previous()
Invokes the underlying ListIterator.previous() method. |
int |
previousIndex()
Invokes the underlying ListIterator.previousIndex() method. |
void |
remove()
Not supported. |
void |
set(Object o)
Not supported. |
void |
setPredicate(Predicate predicate)
Setter for the predicate property. |
Methods inherited from class org.apache.commons.collections.iterators.ProxyListIterator |
getListIterator, setListIterator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FilterListIterator()
FilterListIterator
that will not
function until
setListIterator
and setPredicate
are invoked.public FilterListIterator(ListIterator iterator)
FilterListIterator
that will not
function until setPredicate
is invoked.iterator
- the iterator to usepublic FilterListIterator(ListIterator iterator, Predicate predicate)
FilterListIterator
.iterator
- the iterator to usepredicate
- the predicate to usepublic FilterListIterator(Predicate predicate)
FilterListIterator
that will not
function until
setListIterator
is invoked.predicate
- the predicate to use.Method Detail |
public void add(Object o)
add
in class ProxyListIterator
org.apache.commons.collections.iterators.ProxyListIterator
NullPointerException
- if the underyling iterator is nullpublic Predicate getPredicate()
public boolean hasNext()
ProxyListIterator
ListIterator.hasNext()
method.hasNext
in class ProxyListIterator
org.apache.commons.collections.iterators.ProxyListIterator
NullPointerException
- if the underyling iterator is nullpublic boolean hasPrevious()
ProxyListIterator
ListIterator.hasPrevious()
method.hasPrevious
in class ProxyListIterator
org.apache.commons.collections.iterators.ProxyListIterator
NullPointerException
- if the underyling iterator is nullpublic Object next()
ProxyListIterator
ListIterator.next()
method.next
in class ProxyListIterator
org.apache.commons.collections.iterators.ProxyListIterator
NullPointerException
- if the underyling iterator is nullpublic int nextIndex()
ProxyListIterator
ListIterator.nextIndex()
method.nextIndex
in class ProxyListIterator
org.apache.commons.collections.iterators.ProxyListIterator
NullPointerException
- if the underyling iterator is nullpublic Object previous()
ProxyListIterator
ListIterator.previous()
method.previous
in class ProxyListIterator
org.apache.commons.collections.iterators.ProxyListIterator
NullPointerException
- if the underyling iterator is nullpublic int previousIndex()
ProxyListIterator
ListIterator.previousIndex()
method.previousIndex
in class ProxyListIterator
org.apache.commons.collections.iterators.ProxyListIterator
NullPointerException
- if the underyling iterator is nullpublic void remove()
remove
in class ProxyListIterator
org.apache.commons.collections.iterators.ProxyListIterator
NullPointerException
- if the underyling iterator is nullpublic void set(Object o)
set
in class ProxyListIterator
org.apache.commons.collections.iterators.ProxyListIterator
NullPointerException
- if the underyling iterator is nullpublic void setPredicate(Predicate predicate)
predicate
- new value for the predicate property.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |