public static final class CollectionsPlume.MergedIterator2<T>
extends java.lang.Object
implements java.util.Iterator<T>
CollectionsPlume.MergedIterator, but specialized for the case of
two arguments.| Constructor and Description |
|---|
MergedIterator2(java.util.Iterator<T> itor1,
java.util.Iterator<T> itor2)
Create an iterator that returns the elements of
itor1 then those of itor2. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
public boolean hasNext(@GuardSatisfied CollectionsPlume.MergedIterator2<T> this)
hasNext in interface java.util.Iterator<T>public T next(@GuardSatisfied CollectionsPlume.MergedIterator2<T> this)
next in interface java.util.Iterator<T>public void remove(@GuardSatisfied CollectionsPlume.MergedIterator2<T> this)
remove in interface java.util.Iterator<T>