E - the type of iterated elements.public static final class CloseableIterator.IteratorAdapter<E> extends Object implements CloseableIterator<E>
CloseableIterator.IteratorAdapter<E>EMPTY_INSTANCE| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
forEachRemaining(java.util.function.Consumer<? super E> action) |
boolean |
hasNext() |
E |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadapterForIterator, adapterForIterator, empty, flatten, fromList, ofElement, ofElementspublic void forEachRemaining(java.util.function.Consumer<? super E> action)
forEachRemaining in interface Iterator<E>public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.