public class CloseableMappingIterator<I,O> extends MappingIterator<I,O> implements ClosableIterator<O>
MappingIterator requiring to be closed after iteration (to cleanup resources)source| Constructor and Description |
|---|
CloseableMappingIterator(ClosableIterator<I> source,
Function<I,O> mapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
hasNext, nextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwrapforEachRemaining, hasNext, next, removepublic CloseableMappingIterator(ClosableIterator<I> source, Function<I,O> mapper)
public void close()
close in interface AutoCloseableclose in interface ClosableIterator<O>Copyright © 2024 The Apache Software Foundation. All rights reserved.