Package org.hibernate.util
Class JoinedIterator
java.lang.Object
org.hibernate.util.JoinedIterator
- All Implemented Interfaces:
Iterator
An JoinedIterator is an Iterator that wraps a number of Iterators.
This class makes multiple iterators look like one to the caller.
When any method from the Iterator interface is called, the JoinedIterator
will delegate to a single underlying Iterator. The JoinedIterator will
invoke the Iterators in sequence until all Iterators are exhausted.
-
Constructor Summary
ConstructorsConstructorDescriptionJoinedIterator(Iterator[] iterators) JoinedIterator(Iterator first, Iterator second) JoinedIterator(List iterators) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
JoinedIterator
-
JoinedIterator
-
JoinedIterator
-
-
Method Details