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, wait
adapterForIterator, adapterForIterator, empty, flatten, fromList, ofElement, ofElements
public void forEachRemaining(java.util.function.Consumer<? super E> action)
forEachRemaining
in interface Iterator<E>
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.