Package org.infinispan.util
Class LazyConcatIterator<E>
java.lang.Object
org.infinispan.util.LazyConcatIterator<E>
- Type Parameters:
E
- element type
- All Implemented Interfaces:
AutoCloseable
,Iterator<E>
,CloseableIterator<E>
Iterator implementation that will return all entries from the first iterator. Upon completion of the first iterator
the supplier will generate an additional iterator that will then be used as a source for this iterator. After the
second iterator is consumed this iterator will also be completed.
-
Constructor Summary
ConstructorDescriptionLazyConcatIterator
(CloseableIterator<E> first, Supplier<? extends CloseableIterator<E>> supplier) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
LazyConcatIterator
public LazyConcatIterator(CloseableIterator<E> first, Supplier<? extends CloseableIterator<E>> supplier)
-
-
Method Details