|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.collection.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 java.util.Iterator[] |
iters
The array of iterators to iterate over. |
| Constructor Summary | |
CompoundIterator(java.util.Iterator[] iters)
Construct a CompoundIterator over the given array of iterators. |
|
| Method Summary | |
boolean |
hasNext()
Check if there are more elements. |
java.lang.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 java.util.Iterator[] iters
protected int index
| Constructor Detail |
public CompoundIterator(java.util.Iterator[] iters)
iters - Array of iterators to iterate over.
java.lang.IllegalArgumentException - Array is | Method Detail |
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorjava.util.NoSuchElementException - There are no more elements.public void remove()
remove in interface java.util.Iteratorjava.lang.IllegalStateException
java.lang.UnsupportedOperationException
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||