Package com.google.common.collect
Class ByFunctionOrdering<F,T>
java.lang.Object
com.google.common.collect.Ordering<F>
com.google.common.collect.ByFunctionOrdering<F,T>
- All Implemented Interfaces:
Serializable
,Comparator<F>
An ordering that orders elements by applying an order to the result of a function on those
elements.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.Ordering
Ordering.ArbitraryOrdering, Ordering.IncomparableValueException
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
Fields 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, usingToString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
function
-
ordering
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ByFunctionOrdering
-
-
Method Details
-
compare
-
equals
- Specified by:
equals
in interfaceComparator<F>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode() -
toString
-