Example usage for Java com.google.common.collect ComparisonChain fields, constructors, methods, implement or subclass
The text is from its open source code.
ComparisonChain | compare(@Nullable T left, @Nullable T right, Comparator Compares two objects using a comparator, if the result of this comparison chain has not already been determined. |
ComparisonChain | compare(Comparable> left, Comparable> right) Compares two comparable objects as specified by Comparable#compareTo , if the result of this comparison chain has not already been determined. |
ComparisonChain | compare(int left, int right) Compares two int values as specified by Ints#compare , if the result of this comparison chain has not already been determined. |
ComparisonChain | compare(long left, long right) Compares two long values as specified by Longs#compare , if the result of this comparison chain has not already been determined. |
ComparisonChain | compare(float left, float right) Compares two float values as specified by Float#compare , if the result of this comparison chain has not already been determined. |
ComparisonChain | compare(double left, double right) Compares two double values as specified by Double#compare , if the result of this comparison chain has not already been determined. |
ComparisonChain | compare(Boolean left, Boolean right) Discouraged synonym for #compareFalseFirst . |
int | result() Ends this comparison chain and returns its result: a value having the same sign as the first nonzero comparison result in the chain, or zero if every result was zero. |
ComparisonChain | start() Begins a new chained comparison statement. |