Class CloseableIterableAdapter<T>
java.lang.Object
fr.inria.rules.integraal.util.stream.CloseableIterableAdapter<T>
- Type Parameters:
T- type of elements of the iterator
- All Implemented Interfaces:
CloseableIterable<T>, CloseableIterableWithoutException<T>, Iterable<T>
public class CloseableIterableAdapter<T>
extends Object
implements CloseableIterableWithoutException<T>
Adapts a standard iterable to the closeable-iterable API.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Constructor Summary
ConstructorsConstructorDescriptionCloseableIterableAdapter(Iterable<T> iterator) Creates an adapter around the supplied 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
-
Constructor Details
-
CloseableIterableAdapter
-
-
Method Details
-
iterator
Description copied from interface:CloseableIterableReturns a closeable iterator over the elements.- Specified by:
iteratorin interfaceCloseableIterable<T>- Specified by:
iteratorin interfaceCloseableIterableWithoutException<T>- Specified by:
iteratorin interfaceIterable<T>- Returns:
- the iterator
-