org.tinyjee.maven.dim.utils
Class CompositeIterator<E>

java.lang.Object
  extended by org.tinyjee.maven.dim.utils.CompositeIterator<E>
All Implemented Interfaces:
Iterator<E>

public class CompositeIterator<E>
extends Object
implements Iterator<E>

Simple iterator iterating over a given set of iterators.

Author:
Juergen_Kellerer, 2011-10-23

Constructor Summary
CompositeIterator(Iterator<Iterator<E>> iterators)
          Creates a new composite iterator over the given iterators.
 
Method Summary
 boolean hasNext()
           
 E next()
           
 void remove()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeIterator

public CompositeIterator(Iterator<Iterator<E>> iterators)
Creates a new composite iterator over the given iterators.

Parameters:
iterators - the iterators to group.
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<E>

next

public E next()
Specified by:
next in interface Iterator<E>

remove

public void remove()
Specified by:
remove in interface Iterator<E>

toString

public String toString()
Overrides:
toString in class Object