Class IterableAdapter<T>
java.lang.Object
fr.lirmm.graphik.util.stream.IterableAdapter<T>
- Type Parameters:
T- the iterated element type
- All Implemented Interfaces:
Iterable<T>
Adapts a
CloseableIterable to the standard Iterable interface.- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIterableAdapter(CloseableIterable<T> iterable) Creates an adapter around a closeable iterable. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
iterable
Wrapped closeable iterable.
-
-
Constructor Details
-
IterableAdapter
Creates an adapter around a closeable iterable.- Parameters:
iterable- the iterable to adapt
-
-
Method Details
-
iterator
-