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 void
close()
void
forEachRemaining(Consumer<? super E> action)
boolean
hasNext()
E
next()
void
remove()
-
-
-
Method Detail
-
forEachRemaining
public void forEachRemaining(Consumer<? super E> action)
- Specified by:
forEachRemaining
in interfaceIterator<E>
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-