|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.util.FilteredIterator<E>
E
- the type of elementspublic class FilteredIterator<E>
An iterator that filters the elements returned by a wrapped iterator.
Nested Class Summary | |
---|---|
static class |
FilteredIterator.Iterable<E>
An iterable that creates a filtered iterator as iterator. |
Constructor Summary | |
---|---|
FilteredIterator(ListIterator<E> thewrappedIter,
ICondition<E> thecondition)
Creates a filtered iterator for a given list iterator and a condition. |
Method Summary | |
---|---|
void |
add(E e)
|
boolean |
hasNext()
|
boolean |
hasPrevious()
|
E |
next()
|
int |
nextIndex()
|
E |
previous()
|
int |
previousIndex()
|
void |
remove()
Removes from the underlying collection the last element returned by the iterator (optional operation). |
void |
set(E e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilteredIterator(ListIterator<E> thewrappedIter, ICondition<E> thecondition)
thewrappedIter
- the wrapped list iteratorthecondition
- the condition to evaluate on each elementMethod Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<E>
public boolean hasPrevious()
hasPrevious
in interface ListIterator<E>
public E next()
next
in interface Iterator<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 add(E e)
add
in interface ListIterator<E>
public void remove()
remove
in interface Iterator<E>
public void set(E e)
set
in interface ListIterator<E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |