public class IteratorMapper<E,S> extends Object implements CloseableIterator<S>
CloseableIterator and will close the provided iterator
if it also implemented CloseableIterator.| Constructor and Description |
|---|
IteratorMapper(Iterator<? extends E> iterator,
Function<? super E,? extends S> function) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
S |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic void close()
close in interface AutoCloseableclose in interface CloseableIterator<S>Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.