Uses of Class
com.google.common.collect.ComparisonChain
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ComparisonChain in com.google.common.collect
Modifier and TypeMethodDescriptionabstract ComparisonChain
ComparisonChain.compare
(double left, double right) Compares twodouble
values as specified byDouble.compare(double, double)
, if the result of this comparison chain has not already been determined.abstract ComparisonChain
ComparisonChain.compare
(float left, float right) Compares twofloat
values as specified byFloat.compare(float, float)
, if the result of this comparison chain has not already been determined.abstract ComparisonChain
ComparisonChain.compare
(int left, int right) Compares twoint
values as specified byInteger.compare(int, int)
, if the result of this comparison chain has not already been determined.abstract ComparisonChain
ComparisonChain.compare
(long left, long right) Compares twolong
values as specified byLong.compare(long, long)
, if the result of this comparison chain has not already been determined.final ComparisonChain
Deprecated.abstract ComparisonChain
ComparisonChain.compare
(Comparable<?> left, Comparable<?> right) Compares two comparable objects as specified byComparable.compareTo(T)
, if the result of this comparison chain has not already been determined.abstract <T extends @Nullable Object>
ComparisonChainComparisonChain.compare
(T left, T right, Comparator<T> comparator) Compares two objects using a comparator, if the result of this comparison chain has not already been determined.abstract ComparisonChain
ComparisonChain.compareFalseFirst
(boolean left, boolean right) Compares twoboolean
values, consideringfalse
to be less thantrue
, if the result of this comparison chain has not already been determined.abstract ComparisonChain
ComparisonChain.compareTrueFirst
(boolean left, boolean right) Compares twoboolean
values, consideringtrue
to be less thanfalse
, if the result of this comparison chain has not already been determined.static ComparisonChain
ComparisonChain.start()
Begins a new chained comparison statement.
compareFalseFirst(boolean, boolean)
; or, if the parameters passed are being either negated or reversed, undo the negation or reversal and usecompareTrueFirst(boolean, boolean)
.