R - The return typepublic interface ClosableIterator<R> extends Iterator<R>, AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static <E> ClosableIterator<E> |
wrap(Iterator<E> iterator) |
forEachRemaining, hasNext, next, removevoid close()
close in interface AutoCloseablestatic <E> ClosableIterator<E> wrap(Iterator<E> iterator)
Copyright © 2024 The Apache Software Foundation. All rights reserved.