|
||||||||||
| 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>
org.chromattic.common.collection.FilterIterator<E,I>
public class FilterIterator<E,I>
A convenient subclass for delegating the filtering function.
| Constructor Summary | |
|---|---|
FilterIterator(java.util.Iterator<I> iterator,
IteratorFilter<E,I> filter)
Creates a new filter iterator. |
|
| Method Summary | |
|---|---|
protected E |
adapt(I internal)
Adapts the internal element as an external element. |
| Methods inherited from class org.chromattic.common.collection.AbstractFilterIterator |
|---|
hasNext, next, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilterIterator(java.util.Iterator<I> iterator,
IteratorFilter<E,I> filter)
throws java.lang.NullPointerException
iterator - the iteratorfilter - the filter
java.lang.NullPointerException - if any argument is null| Method Detail |
|---|
protected E adapt(I internal)
AbstractFilterIterator
adapt in class AbstractFilterIterator<E,I>internal - the internal element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||