|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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. |
ListIterator |
getListIterator()
Gets the iterator this iterator is using. |
Predicate |
getPredicate()
Gets the predicate this iterator is using. |
boolean |
hasNext()
|
boolean |
hasPrevious()
|
Object |
next()
|
int |
nextIndex()
|
Object |
previous()
|
int |
previousIndex()
|
void |
remove()
Not supported. |
void |
set(Object o)
Not supported. |
void |
setListIterator(ListIterator iterator)
Sets the iterator for this iterator to use. |
void |
setPredicate(Predicate predicate)
Sets the predicate this the iterator to use. |
| 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 use
public 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 interface ListIteratorpublic boolean hasNext()
hasNext in interface ListIteratorpublic boolean hasPrevious()
hasPrevious in interface ListIteratorpublic Object next()
next in interface ListIteratorpublic int nextIndex()
nextIndex in interface ListIteratorpublic Object previous()
previous in interface ListIteratorpublic int previousIndex()
previousIndex in interface ListIteratorpublic void remove()
remove in interface ListIteratorpublic void set(Object o)
set in interface ListIteratorpublic ListIterator getListIterator()
public void setListIterator(ListIterator iterator)
iterator - the iterator to usepublic Predicate getPredicate()
public void setPredicate(Predicate predicate)
predicate - the transformer to use
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||