prefuse.util.collections
Class CompositeIterator

java.lang.Object
  extended by prefuse.util.collections.CompositeIterator
All Implemented Interfaces:
java.util.Iterator

public class CompositeIterator
extends java.lang.Object
implements java.util.Iterator

Iterator implementation that combines the results of multiple iterators.

Author:
jeffrey heer

Constructor Summary
CompositeIterator(int size)
           
CompositeIterator(java.util.Iterator[] iters)
           
CompositeIterator(java.util.Iterator iter1, java.util.Iterator iter2)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
          Not supported.
 void setIterator(int idx, java.util.Iterator iter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeIterator

public CompositeIterator(int size)

CompositeIterator

public CompositeIterator(java.util.Iterator iter1,
                         java.util.Iterator iter2)

CompositeIterator

public CompositeIterator(java.util.Iterator[] iters)
Method Detail

setIterator

public void setIterator(int idx,
                        java.util.Iterator iter)

remove

public void remove()
Not supported.

Specified by:
remove in interface java.util.Iterator
See Also:
Iterator.remove()

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
See Also:
Iterator.next()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
See Also:
Iterator.hasNext()


Copyright © 2007 Regents of the University of California