|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.umd.cfar.lamp.apploader.misc.MultiIterator
Given an array of iterators, iterates through them.
| Constructor Summary | |
MultiIterator(java.util.Iterator[] iters)
Constructs a new iterator given the array of iterators to traverse. |
|
| Method Summary | |
boolean |
hasNext()
Tests to see if there is another item in this or the next iterator. |
java.lang.Object |
next()
Gets the next element in the flattened list of iterators. |
void |
remove()
Tries to call the appropriate remove method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MultiIterator(java.util.Iterator[] iters)
iters - The iterators to exhaust in order| Method Detail |
public boolean hasNext()
hasNext in interface java.util.IteratorIterator.hasNext()public java.lang.Object next()
next in interface java.util.IteratorIterator.next()public void remove()
remove in interface java.util.IteratorIterator.remove()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||