final class SortedIterables
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
SortedIterables() |
| Modifier and Type | Method and Description |
|---|---|
static <E> java.util.Comparator<? super E> |
comparator(java.util.SortedSet<E> sortedSet) |
static boolean |
hasSameComparator(java.util.Comparator<?> comparator,
java.lang.Iterable<?> elements)
Returns
true if elements is a sorted collection using an ordering equivalent to
comparator. |
public static boolean hasSameComparator(java.util.Comparator<?> comparator,
java.lang.Iterable<?> elements)
true if elements is a sorted collection using an ordering equivalent to
comparator.public static <E> java.util.Comparator<? super E> comparator(java.util.SortedSet<E> sortedSet)