|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chromattic.common.collection.AbstractFilterIterator<E,I>
public abstract class AbstractFilterIterator<E,I>
An iterator that filter the elements of a delegate iterator allowing to skip some elements and to perform type conversion.
| Constructor Summary | |
|---|---|
AbstractFilterIterator(java.util.Iterator<I> iterator)
Create a new filter iterator. |
|
| Method Summary | |
|---|---|
protected abstract E |
adapt(I internal)
Adapts the internal element as an external element. |
boolean |
hasNext()
|
E |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractFilterIterator(java.util.Iterator<I> iterator)
throws java.lang.NullPointerException
iterator - the iterator
java.lang.NullPointerException - if the iterator is null| Method Detail |
|---|
public final boolean hasNext()
hasNext in interface java.util.Iterator<E>public final E next()
next in interface java.util.Iterator<E>public void remove()
remove in interface java.util.Iterator<E>protected abstract E adapt(I internal)
internal - the internal element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||