Class IteratorAdapter<T>
java.lang.Object
fr.lirmm.graphik.util.stream.IteratorAdapter<T>
- Type Parameters:
T- the iterated element type
- All Implemented Interfaces:
Iterator<T>
Adapts a
CloseableIterator to the standard Iterator interface.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIteratorAdapter(CloseableIterator<T> iterator) Creates an iterator adapter around a closeable iterator. -
Method Summary
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
iterator
Wrapped closeable iterator.
-
-
Constructor Details
-
IteratorAdapter
Creates an iterator adapter around a closeable iterator.- Parameters:
iterator- the iterator to adapt
-
-
Method Details
-
hasNext
-
next
-
finalize
-
remove
-