public class SortedCollections
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SortedCollections.Comparison |
static class |
SortedCollections.ComparisonIterator<T0,T1> |
Constructor and Description |
---|
SortedCollections() |
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.Comparable<T>> |
comparisonIterator(java.util.Collection<T> left,
java.util.Collection<T> right) |
static <T0,T1> SortedCollections.ComparisonIterator<T0,T1> |
comparisonIterator(java.util.Collection<T0> left,
java.util.Collection<T1> right,
java.util.Comparator comparator)
Creates an iterator over the element by element comparison betweeen two
sorted collections of possibly different, but somehow comparable, element
types.
|
public static <T0,T1> SortedCollections.ComparisonIterator<T0,T1> comparisonIterator(java.util.Collection<T0> left, java.util.Collection<T1> right, java.util.Comparator comparator)
public static <T extends java.lang.Comparable<T>> SortedCollections.ComparisonIterator<T,T> comparisonIterator(java.util.Collection<T> left, java.util.Collection<T> right)