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
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 Summary
ConstructorDescriptionMergedIterator2
(Iterator<T> itor1, Iterator<T> itor2) Create an iterator that returns the elements ofitor1
then those ofitor2
. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
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) -
next
-
remove
public void remove(@GuardSatisfied CollectionsPlume.MergedIterator2<T> this)
-