org.codehaus.janino.util.iterator
Class TransformingIterator
java.lang.Object
org.codehaus.janino.util.iterator.FilterIterator
org.codehaus.janino.util.iterator.TransformingIterator
- All Implemented Interfaces:
- Iterator
- public abstract class TransformingIterator
- extends FilterIterator
An Iterator
that transforms its elements on-the-fly.
Method Summary |
Object |
next()
|
protected abstract Object |
transform(Object 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 |
TransformingIterator
public TransformingIterator(Iterator delegate)
next
public final Object next()
- Specified by:
next
in interface Iterator
- Overrides:
next
in class FilterIterator
transform
protected abstract Object transform(Object o)
- Derived classes must implement this method such that it does the
desired transformation.