T
- the element type of the component iterator; this OrderedPairIterator has elements of
type Pair<T,T>
@Deprecated public class OrderedPairIterator<T> extends java.lang.Object implements java.util.Iterator<Pair<T,T>>
For example, suppose that the inputs are
[1, 2, 3, 5] and [1, 3, 5, 7, 9].Then the output is
[(1,1), (2,null), (3,3), (5,5), (null,7), (null, 9)].
(This operation is similar to, but not the same as, the operation called "zipping".)
In some cases this is just the right abstraction. But in some cases it's appropriate to use set intersection/difference instead.
Constructor and Description |
---|
OrderedPairIterator(java.util.Iterator<T> itor1,
java.util.Iterator<T> itor2)
Deprecated.
|
OrderedPairIterator(java.util.Iterator<T> itor1,
java.util.Iterator<T> itor2,
java.util.Comparator<T> comparator)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Deprecated.
|
Pair<T,T> |
next()
Deprecated.
|
void |
remove()
Deprecated.
|