Package com.google.common.collect
Class LexicographicalOrdering<T>
java.lang.Object
com.google.common.collect.Ordering<Iterable<T>>
com.google.common.collect.LexicographicalOrdering<T>
- All Implemented Interfaces:
Serializable,Comparator<Iterable<T>>
An ordering which sorts iterables by comparing corresponding elements pairwise.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.Ordering
Ordering.ArbitraryOrdering, Ordering.IncomparableValueException -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Comparator<? super T>private static final longFields inherited from class com.google.common.collect.Ordering
LEFT_IS_GREATER, RIGHT_IS_GREATER -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.collect.Ordering
allEqual, arbitrary, binarySearch, compound, compound, explicit, explicit, from, from, greatestOf, greatestOf, immutableSortedCopy, isOrdered, isStrictlyOrdered, leastOf, leastOf, lexicographical, max, max, max, max, min, min, min, min, natural, nullsFirst, nullsLast, onKeys, onResultOf, reverse, sortedCopy, usingToStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
elementOrder
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
LexicographicalOrdering
LexicographicalOrdering(Comparator<? super T> elementOrder)
-
-
Method Details
-
compare
-
equals
- Specified by:
equalsin interfaceComparator<T>- Overrides:
equalsin classObject
-
hashCode
public int hashCode() -
toString
-