public abstract class TransformingIterator extends FilterIterator
Iterator
that transforms its elements on-the-fly.delegate
Constructor and Description |
---|
TransformingIterator(Iterator delegate) |
Modifier and Type | Method and Description |
---|---|
Object |
next() |
protected abstract Object |
transform(Object o)
Derived classes must implement this method such that it does the
desired transformation.
|
hasNext, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public TransformingIterator(Iterator delegate)
Copyright © 2001–2016. All rights reserved.