public class CloseableSuppliedIterator<E> extends Object implements CloseableIterator<E>
| Constructor and Description |
|---|
CloseableSuppliedIterator(CloseableSupplier<? extends E> supplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
forEachRemaining(Consumer<? super E> action) |
boolean |
hasNext() |
E |
next() |
public CloseableSuppliedIterator(CloseableSupplier<? extends E> supplier)
public void close()
close in interface AutoCloseableclose in interface CloseableIterator<E>public void forEachRemaining(Consumer<? super E> action)
forEachRemaining in interface Iterator<E>Copyright © 2025 JBoss, a division of Red Hat. All rights reserved.