Uses of Class
com.google.common.collect.ComparisonChain
Packages that use ComparisonChain
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of ComparisonChain in com.google.common.collect
Subclasses of ComparisonChain in com.google.common.collectModifier and TypeClassDescriptionprivate static final class
Fields in com.google.common.collect declared as ComparisonChainModifier and TypeFieldDescriptionprivate static final ComparisonChain
ComparisonChain.ACTIVE
private static final ComparisonChain
ComparisonChain.GREATER
private static final ComparisonChain
ComparisonChain.LESS
Methods in com.google.common.collect that return ComparisonChainModifier 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> ComparisonChain
ComparisonChain.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.ComparisonChain.InactiveComparisonChain.compare
(double left, double right) ComparisonChain.InactiveComparisonChain.compare
(float left, float right) ComparisonChain.InactiveComparisonChain.compare
(int left, int right) ComparisonChain.InactiveComparisonChain.compare
(long left, long right) ComparisonChain.InactiveComparisonChain.compare
(Comparable<?> left, Comparable<?> right) <T> ComparisonChain
ComparisonChain.InactiveComparisonChain.compare
(T left, T right, Comparator<T> comparator) 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.ComparisonChain.InactiveComparisonChain.compareFalseFirst
(boolean left, boolean right) 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.ComparisonChain.InactiveComparisonChain.compareTrueFirst
(boolean left, boolean right) 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)
.