Class JoinedIterator<T>
- java.lang.Object
-
- org.hibernate.internal.util.collections.JoinedIterator<T>
-
- All Implemented Interfaces:
Iterator<T>
public class JoinedIterator<T> extends Object implements Iterator<T>
An Iterator implementation that wraps other Iterators, and presents them all as one continuous Iterator. When any method from Iterator is called, we delegate to each wrapped Iterator in turn until all wrapped Iterators are exhausted.
-
-
Constructor Summary
Constructors Constructor Description JoinedIterator(Iterator<? extends T>... iteratorsToWrap)JoinedIterator(List<Iterator<T>> wrappedIterators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext()voidremove()protected voidupdateCurrentIterator()-
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
-
-