| Modifier and Type | Method and Description |
|---|---|
Chain.ComparisonChain |
compare(byte left,
byte right)
Compares two
byte values as specified by CommonUtil.compare(boolean, boolean),
if the result of this comparison chain has not already been
determined. |
Chain.ComparisonChain |
compare(char left,
char right)
Compares two
char values as specified by CommonUtil.compare(boolean, boolean),
if the result of this comparison chain has not already been
determined. |
Chain.ComparisonChain |
compare(double left,
double right)
Compares two
double values as specified by Double.compare(double, double), if the result of this comparison chain has not
already been determined. |
Chain.ComparisonChain |
compare(float left,
float right)
Compares two
float values as specified by Float.compare(float, float), if the result of this comparison chain has not
already been determined. |
Chain.ComparisonChain |
compare(int left,
int right)
Compares two
int values as specified by CommonUtil.compare(boolean, boolean),
if the result of this comparison chain has not already been
determined. |
Chain.ComparisonChain |
compare(long left,
long right)
Compares two
long values as specified by CommonUtil.compare(boolean, boolean),
if the result of this comparison chain has not already been
determined. |
Chain.ComparisonChain |
compare(short left,
short right)
Compares two
short values as specified by CommonUtil.compare(boolean, boolean),
if the result of this comparison chain has not already been
determined. |
<T extends Comparable<? super T>> |
compare(T left,
T right)
Compares two comparable objects as specified by
Comparable.compareTo(T), if the result of this comparison chain
has not already been determined. |
<T> Chain.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.
|
<T,E extends Exception> |
compare(T left,
T right,
Throwables.BiFunction<? super T,? super T,Integer,E> func) |
Chain.ComparisonChain |
compareFalseLess(boolean left,
boolean right)
Compares two
boolean values, considering false to be less
than true, if the result of this comparison chain has not
already been determined. |
<T extends Comparable<? super T>> |
compareNullBigger(T left,
T right)
null is bigger. |
<T extends Comparable<? super T>> |
compareNullLess(T left,
T right)
null is smaller. |
Chain.ComparisonChain |
compareTrueLess(boolean left,
boolean right)
Compares two
boolean values, considering true to be less
than false, if the result of this comparison chain has not
already been determined. |
int |
result() |
public <T extends Comparable<? super T>> Chain.ComparisonChain compare(T left, T right)
Comparable.compareTo(T), if the result of this comparison chain
has not already been determined.T - left - right - public <T> Chain.ComparisonChain compare(T left, T right, Comparator<T> comparator)
T - left - right - comparator - public <T,E extends Exception> Chain.ComparisonChain compare(T left, T right, Throwables.BiFunction<? super T,? super T,Integer,E> func) throws E extends Exception
T - E - left - right - func - E - the eE extends Exceptionpublic <T extends Comparable<? super T>> Chain.ComparisonChain compareNullLess(T left, T right)
null is smaller.T - left - right - public <T extends Comparable<? super T>> Chain.ComparisonChain compareNullBigger(T left, T right)
null is bigger.T - left - right - public Chain.ComparisonChain compareFalseLess(boolean left, boolean right)
boolean values, considering false to be less
than true, if the result of this comparison chain has not
already been determined.left - right - public Chain.ComparisonChain compareTrueLess(boolean left, boolean right)
boolean values, considering true to be less
than false, if the result of this comparison chain has not
already been determined.left - right - public Chain.ComparisonChain compare(char left, char right)
char values as specified by CommonUtil.compare(boolean, boolean),
if the result of this comparison chain has not already been
determined.left - right - public Chain.ComparisonChain compare(byte left, byte right)
byte values as specified by CommonUtil.compare(boolean, boolean),
if the result of this comparison chain has not already been
determined.left - right - public Chain.ComparisonChain compare(short left, short right)
short values as specified by CommonUtil.compare(boolean, boolean),
if the result of this comparison chain has not already been
determined.left - right - public Chain.ComparisonChain compare(int left, int right)
int values as specified by CommonUtil.compare(boolean, boolean),
if the result of this comparison chain has not already been
determined.left - right - public Chain.ComparisonChain compare(long left, long right)
long values as specified by CommonUtil.compare(boolean, boolean),
if the result of this comparison chain has not already been
determined.left - right - public Chain.ComparisonChain compare(float left, float right)
float values as specified by Float.compare(float, float), if the result of this comparison chain has not
already been determined.left - right - public Chain.ComparisonChain compare(double left, double right)
double values as specified by Double.compare(double, double), if the result of this comparison chain has not
already been determined.left - right - public int result()
Copyright © 2021. All rights reserved.