Package com.google.common.collect
Class SortedIterables
- java.lang.Object
-
- com.google.common.collect.SortedIterables
-
@GwtCompatible final class SortedIterables extends java.lang.Object
Utilities for dealing with sorted collections of all types.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SortedIterables()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
Returnstrue
ifelements
is a sorted collection using an ordering equivalent tocomparator
.
-
-
-
Method Detail
-
hasSameComparator
public static boolean hasSameComparator(java.util.Comparator<?> comparator, java.lang.Iterable<?> elements)
Returnstrue
ifelements
is a sorted collection using an ordering equivalent tocomparator
.
-
comparator
public static <E> java.util.Comparator<? super E> comparator(java.util.SortedSet<E> sortedSet)
-
-