Class TransformingIterator
- java.lang.Object
-
- org.codehaus.janino.util.iterator.FilterIterator
-
- org.codehaus.janino.util.iterator.TransformingIterator
-
- All Implemented Interfaces:
java.util.Iterator
public abstract class TransformingIterator extends FilterIterator
AnIterator
that transforms its elements on-the-fly.
-
-
Field Summary
-
Fields inherited from class org.codehaus.janino.util.iterator.FilterIterator
delegate
-
-
Constructor Summary
Constructors Constructor Description TransformingIterator(java.util.Iterator delegate)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Object
next()
protected abstract java.lang.Object
transform(java.lang.Object o)
Derived classes must implement this method such that it does the desired transformation.-
Methods inherited from class org.codehaus.janino.util.iterator.FilterIterator
hasNext, remove
-
-
-
-
Method Detail
-
next
public final java.lang.Object next()
- Specified by:
next
in interfacejava.util.Iterator
- Overrides:
next
in classFilterIterator
-
transform
protected abstract java.lang.Object transform(java.lang.Object o)
Derived classes must implement this method such that it does the desired transformation.
-
-