org.tinyjee.maven.dim.utils
Class CompositeIterator<E>
java.lang.Object
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
CompositeIterator
public CompositeIterator(Iterator<Iterator<E>> iterators)
- Creates a new composite iterator over the given iterators.
- Parameters:
iterators
- the iterators to group.
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