org.jbind.util.collection
Class ConcatIterator

java.lang.Object
  extended byorg.jbind.util.collection.ConcatIterator
All Implemented Interfaces:
java.util.Iterator

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

Concatenates an array of iterators to one iterator.

Author:
Wachter

Constructor Summary
ConcatIterator(java.util.Iterator anI1, java.util.Iterator anI2)
           
ConcatIterator(java.util.List anIterators)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcatIterator

public ConcatIterator(java.util.List anIterators)

ConcatIterator

public ConcatIterator(java.util.Iterator anI1,
                      java.util.Iterator anI2)
Method Detail

next

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

hasNext

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

remove

public void remove()
Specified by:
remove in interface java.util.Iterator