Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » util » [javadoc | source]
org.hibernate.util
public class: JoinedIterator [javadoc | source]
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:
 public JoinedIterator(List iterators) 
 public JoinedIterator(Iterator[] iterators) 
 public JoinedIterator(Iterator first,
    Iterator second) 
Method from org.hibernate.util.JoinedIterator Summary:
hasNext,   next,   remove,   updateCurrentIterator
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.util.JoinedIterator Detail:
 public boolean hasNext() 
 public Object next() 
 public  void remove() 
 protected  void updateCurrentIterator()