Package org.infinispan.util
Class CloseableSuppliedIterator<E>
- java.lang.Object
-
- org.infinispan.util.CloseableSuppliedIterator<E>
-
- All Implemented Interfaces:
AutoCloseable
,Iterator<E>
,CloseableIterator<E>
public class CloseableSuppliedIterator<E> extends Object implements CloseableIterator<E>
-
-
Constructor Summary
Constructors Constructor Description CloseableSuppliedIterator(CloseableSupplier<? extends E> supplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
forEachRemaining(Consumer<? super E> action)
boolean
hasNext()
E
next()
-
-
-
Constructor Detail
-
CloseableSuppliedIterator
public CloseableSuppliedIterator(CloseableSupplier<? extends E> supplier)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseableIterator<E>
-
forEachRemaining
public void forEachRemaining(Consumer<? super E> action)
- Specified by:
forEachRemaining
in interfaceIterator<E>
-
-