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 AutoCloseable
close
in interface CloseableIterator<E>
public void forEachRemaining(Consumer<? super E> action)
forEachRemaining
in interface Iterator<E>
Copyright © 2021 JBoss by Red Hat. All rights reserved.