|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections15.iterators.FilterListIterator<E>
public class FilterListIterator<E>
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
setPredicate is invoked. |
|
FilterListIterator(ListIterator<E> iterator)
Constructs a new FilterListIterator that will not
function until setPredicate is invoked. |
|
FilterListIterator(ListIterator<E> iterator,
Predicate<? super E> predicate)
Constructs a new FilterListIterator . |
|
FilterListIterator(Predicate<? super E> predicate)
Constructs a new FilterListIterator . |
Method Summary | |
---|---|
void |
add(E o)
Not supported. |
ListIterator<E> |
getListIterator()
Gets the iterator this iterator is using. |
Predicate<? super E> |
getPredicate()
Gets the predicate this iterator is using. |
boolean |
hasNext()
|
boolean |
hasPrevious()
|
E |
next()
|
int |
nextIndex()
|
E |
previous()
|
int |
previousIndex()
|
void |
remove()
Not supported. |
void |
set(E o)
Not supported. |
void |
setListIterator(ListIterator<E> iterator)
Sets the iterator for this iterator to use. |
void |
setPredicate(Predicate<? super E> 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
setPredicate
is invoked.
public FilterListIterator(ListIterator<E> iterator)
FilterListIterator
that will not
function until setPredicate
is invoked.
iterator
- the iterator to usepublic FilterListIterator(ListIterator<E> iterator, Predicate<? super E> predicate)
FilterListIterator
.
iterator
- the iterator to usepredicate
- the predicate to usepublic FilterListIterator(Predicate<? super E> predicate)
FilterListIterator
.
predicate
- the predicate to use.Method Detail |
---|
public void add(E o)
add
in interface ListIterator<E>
public boolean hasNext()
hasNext
in interface Iterator<E>
hasNext
in interface ListIterator<E>
public boolean hasPrevious()
hasPrevious
in interface ListIterator<E>
public E next()
next
in interface Iterator<E>
next
in interface ListIterator<E>
public int nextIndex()
nextIndex
in interface ListIterator<E>
public E previous()
previous
in interface ListIterator<E>
public int previousIndex()
previousIndex
in interface ListIterator<E>
public void remove()
remove
in interface Iterator<E>
remove
in interface ListIterator<E>
public void set(E o)
set
in interface ListIterator<E>
public ListIterator<E> getListIterator()
public void setListIterator(ListIterator<E> iterator)
iterator
- the iterator to usepublic Predicate<? super E> getPredicate()
public void setPredicate(Predicate<? super E> predicate)
predicate
- the transformer to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |