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
AnIteratorthat 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.Objectnext()protected abstract java.lang.Objecttransform(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:
nextin interfacejava.util.Iterator- Overrides:
nextin 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.
-
-