|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.janino.util.iterator.TransformingIterator<T1,T2>
T1 - The element type of the delegate iteratorT2 - The element type of this iteratorpublic abstract class TransformingIterator<T1,T2>
An Iterator that transforms its elements on-the-fly.
| Constructor Summary | |
|---|---|
TransformingIterator(java.util.Iterator<T1> delegate)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
T2 |
next()
|
void |
remove()
|
protected abstract T2 |
transform(T1 o)
Derived classes must implement this method such that it does the desired transformation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransformingIterator(java.util.Iterator<T1> delegate)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<T2>public final T2 next()
next in interface java.util.Iterator<T2>public void remove()
remove in interface java.util.Iterator<T2>protected abstract T2 transform(T1 o)
|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||