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, wait
forEachRemaining
public void close()
close
in interface AutoCloseable
close
in interface CloseableIterator<S>
Copyright © 2021 JBoss by Red Hat. All rights reserved.