Package org.apache.flink.util
Class CloseableIterator.IteratorAdapter<E>
- java.lang.Object
-
- org.apache.flink.util.CloseableIterator.IteratorAdapter<E>
-
- Type Parameters:
E- the type of iterated elements.
- All Implemented Interfaces:
AutoCloseable,Iterator<E>,CloseableIterator<E>
- Enclosing interface:
- CloseableIterator<T>
public static final class CloseableIterator.IteratorAdapter<E> extends Object implements CloseableIterator<E>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.util.CloseableIterator
CloseableIterator.IteratorAdapter<E>
-
-
Field Summary
-
Fields inherited from interface org.apache.flink.util.CloseableIterator
EMPTY_INSTANCE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidforEachRemaining(java.util.function.Consumer<? super E> action)booleanhasNext()Enext()voidremove()
-
-
-
Method Detail
-
forEachRemaining
public void forEachRemaining(java.util.function.Consumer<? super E> action)
- Specified by:
forEachRemainingin interfaceIterator<E>
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-