public static final class CollectionsPlume.MergedIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
CollectionsPlume.MergedIterator2, but generalized to arbitrary number
of iterators.| Constructor and Description |
|---|
MergedIterator(java.util.Iterator<java.util.Iterator<T>> itorOfItors)
Create an iterator that returns the elements of the given iterators, in turn.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
public MergedIterator(java.util.Iterator<java.util.Iterator<T>> itorOfItors)
itorOfItors - an iterator whose elements are iterators; this MergedIterator will merge
them allpublic boolean hasNext(@GuardSatisfied CollectionsPlume.MergedIterator<T> this)
hasNext in interface java.util.Iterator<T>public T next(@GuardSatisfied CollectionsPlume.MergedIterator<T> this)
next in interface java.util.Iterator<T>public void remove(@GuardSatisfied CollectionsPlume.MergedIterator<T> this)
remove in interface java.util.Iterator<T>