Package org.apache.flink.util
Interface CloseableIterable<T>
-
- Type Parameters:
T
- type of the iterated objects.
- All Superinterfaces:
AutoCloseable
,Closeable
,Iterable<T>
- All Known Implementing Classes:
CloseableIterable.Empty
public interface CloseableIterable<T> extends Iterable<T>, Closeable
This interface represents an iterable that is also closeable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CloseableIterable.Empty<T>
Empty iterator.
-
Method Summary
Static Methods Modifier and Type Method Description static <T> CloseableIterable<T>
empty()
Returns an empty iterator.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
empty
static <T> CloseableIterable<T> empty()
Returns an empty iterator.
-
-