|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.collection.CompoundIterator
public class CompoundIterator
A compound iterator, which iterates over all of the elements in the given iterators.
Field Summary | |
---|---|
protected int |
index
The index of the current iterator. |
protected Iterator[] |
iters
The array of iterators to iterate over. |
Constructor Summary | |
---|---|
CompoundIterator(Iterator[] iters)
Construct a CompoundIterator over the given array of iterators. |
Method Summary | |
---|---|
boolean |
hasNext()
Check if there are more elements. |
Object |
next()
Return the next element from the current iterator. |
void |
remove()
Remove the current element from the current iterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Iterator[] iters
protected int index
Constructor Detail |
---|
public CompoundIterator(Iterator[] iters)
iters
- Array of iterators to iterate over.
IllegalArgumentException
- Array is Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator
public Object next()
next
in interface Iterator
NoSuchElementException
- There are no more elements.public void remove()
remove
in interface Iterator
IllegalStateException
UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |