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
Methods in com.google.common.collect that return ComparisonChainModifier and TypeMethodDescriptionabstract ComparisonChainComparisonChain.compare(double left, double right) Compares twodoublevalues as specified byDouble.compare(double, double), if the result of this comparison chain has not already been determined.abstract ComparisonChainComparisonChain.compare(float left, float right) Compares twofloatvalues as specified byFloat.compare(float, float), if the result of this comparison chain has not already been determined.abstract ComparisonChainComparisonChain.compare(int left, int right) Compares twointvalues as specified byInteger.compare(int, int), if the result of this comparison chain has not already been determined.abstract ComparisonChainComparisonChain.compare(long left, long right) Compares twolongvalues as specified byLong.compare(long, long), if the result of this comparison chain has not already been determined.final ComparisonChainDeprecated.abstract ComparisonChainComparisonChain.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 ComparisonChainComparisonChain.compareFalseFirst(boolean left, boolean right) Compares twobooleanvalues, consideringfalseto be less thantrue, if the result of this comparison chain has not already been determined.abstract ComparisonChainComparisonChain.compareTrueFirst(boolean left, boolean right) Compares twobooleanvalues, consideringtrueto be less thanfalse, if the result of this comparison chain has not already been determined.static ComparisonChainComparisonChain.start()Begins a new chained comparison statement.
ComparisonChain.compareFalseFirst(boolean, boolean); or, if the parameters passed are being either negated or reversed, undo the negation or reversal and useComparisonChain.compareTrueFirst(boolean, boolean).