Package net.sourceforge.pmd.util
Class CompoundIterator<T>
- java.lang.Object
-
- net.sourceforge.pmd.util.CompoundIterator<T>
-
- Type Parameters:
T
- The type returned by the Iterator.
- All Implemented Interfaces:
java.util.Iterator<T>
public class CompoundIterator<T> extends java.lang.Object implements java.util.Iterator<T>
Creates a single compound Iterator from an array of Iterators.- See Also:
Iterator
-
-
Constructor Summary
Constructors Constructor Description CompoundIterator(java.util.Iterator<T>... iterators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
void
remove()
-
-
-
Constructor Detail
-
CompoundIterator
public CompoundIterator(java.util.Iterator<T>... iterators)
- Parameters:
iterators
- The iterators use.
-
-