Class TransformingIterator<T1,T2>
java.lang.Object
org.codehaus.commons.compiler.util.iterator.TransformingIterator<T1,T2>
- Type Parameters:
T1
- The element type of the delegate iteratorT2
- The element type of this iterator
- All Implemented Interfaces:
Iterator<T2>
An
Iterator
that transforms its elements on-the-fly.-
Field Details
-
delegate
-
-
Constructor Details
-
TransformingIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
transform
Derived classes must implement this method such that it does the desired transformation.
-