Package org.plumelib.util
Class CollectionsPlume.MergedIterator2<T>
java.lang.Object
org.plumelib.util.CollectionsPlume.MergedIterator2<T>
- Type Parameters:
T
- the type of elements of the iterator
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
CollectionsPlume
@Deprecated
public static final class CollectionsPlume.MergedIterator2<T>
extends Object
implements Iterator<T>
Deprecated.
An Iterator that returns first the elements returned by its first argument, then the elements
returned by its second argument. Like
CollectionsPlume.MergedIterator
, but specialized for the case of
two arguments.-
Constructor Details
-
MergedIterator2
Create an iterator that returns the elements ofitor1
then those ofitor2
.- Parameters:
itor1
- an Iteratoritor2
- another Iterator
-
-
Method Details
-
hasNext
public boolean hasNext(@GuardSatisfied CollectionsPlume.MergedIterator2<T> this) Deprecated. -
next
Deprecated. -
remove
public void remove(@GuardSatisfied CollectionsPlume.MergedIterator2<T> this) Deprecated.
-
CollectionsPlume.mergedIterator2(java.util.Iterator<T>, java.util.Iterator<T>)