org.hibernate.util
Class JoinedIterator
java.lang.Object
org.hibernate.util.JoinedIterator
- All Implemented Interfaces:
- java.util.Iterator
public class JoinedIterator
- extends java.lang.Object
- implements java.util.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JoinedIterator
public JoinedIterator(java.util.List iterators)
JoinedIterator
public JoinedIterator(java.util.Iterator[] iterators)
JoinedIterator
public JoinedIterator(java.util.Iterator first,
java.util.Iterator second)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator
updateCurrentIterator
protected void updateCurrentIterator()
Copyright © 2008 Hibernate.org. All Rights Reserved.