I - The type of the original iterator’s itemsO - The type of the mapped itemspublic class MappedIterator<I,O> extends Object implements Iterator<O>
Iterator that will apply a Mapper to all
returned items. The remove() method will by delegated to the
original iterator.| Constructor and Description |
|---|
MappedIterator(Iterator<I> inputIterator,
Mapper<? super I,? extends O> mapper)
Creates a new iterator mapper.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
O |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingCopyright © 2026. All rights reserved.