public final class Chain extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Chain.ComparisonChain
The Class ComparisonChain.
|
static class |
Chain.EquivalenceChain
The Class EquivalenceChain.
|
static class |
Chain.HashCodeChain
The Class HashCodeChain.
|
| Modifier and Type | Method and Description |
|---|---|
static 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. |
static 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. |
static 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. |
static 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. |
static 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. |
static 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. |
static 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. |
static <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. |
static <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.
|
static <T,E extends Exception> |
compare(T left,
T right,
Throwables.BiFunction<? super T,? super T,Integer,E> func) |
static 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. |
static <T extends Comparable<? super T>> |
compareNullBigger(T left,
T right)
null is bigger. |
static <T extends Comparable<? super T>> |
compareNullLess(T left,
T right)
null is smaller. |
static 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. |
static Chain.EquivalenceChain |
equals(boolean left,
boolean right)
Compares two
boolean values as specified by left == right,
if the result of this equivalence chain has not already been
determined. |
static Chain.EquivalenceChain |
equals(byte left,
byte right)
Compares two
byte values as specified by left == right,
if the result of this equivalence chain has not already been
determined. |
static Chain.EquivalenceChain |
equals(char left,
char right)
Compares two
char values as specified by left == right,
if the result of this equivalence chain has not already been
determined. |
static Chain.EquivalenceChain |
equals(double left,
double right)
Compares two
double values as specified by Double.compare(double, double), if the result of this equivalence chain has not
already been determined. |
static Chain.EquivalenceChain |
equals(float left,
float right)
Compares two
float values as specified by Float.compare(float, float), if the result of this equivalence chain has not
already been determined. |
static Chain.EquivalenceChain |
equals(int left,
int right)
Compares two
int values as specified by left == right,
if the result of this equivalence chain has not already been
determined. |
static Chain.EquivalenceChain |
equals(long left,
long right)
Compares two
long values as specified by left == right,
if the result of this equivalence chain has not already been
determined. |
static Chain.EquivalenceChain |
equals(Object left,
Object right)
Compares two comparable objects as specified by
CommonUtil.equals(Object, Object), if the result of this equivalence chain
has not already been determined. |
static Chain.EquivalenceChain |
equals(short left,
short right)
Compares two
short values as specified by left == right,
if the result of this equivalence chain has not already been
determined. |
static <T,E extends Exception> |
equals(T left,
T right,
Throwables.BiFunction<? super T,? super T,Boolean,E> func) |
static Chain.HashCodeChain |
hash(boolean value)
Add the hash code of the specified
value to result. |
static Chain.HashCodeChain |
hash(byte value)
Add the hash code of the specified
value to result. |
static Chain.HashCodeChain |
hash(char value)
Add the hash code of the specified
value to result. |
static Chain.HashCodeChain |
hash(double value)
Add the hash code of the specified
value to result. |
static Chain.HashCodeChain |
hash(float value)
Add the hash code of the specified
value to result. |
static Chain.HashCodeChain |
hash(int value)
Add the hash code of the specified
value to result. |
static Chain.HashCodeChain |
hash(long value)
Add the hash code of the specified
value to result. |
static Chain.HashCodeChain |
hash(Object value)
Add the hash code of the specified
value to result. |
static Chain.HashCodeChain |
hash(short value)
Add the hash code of the specified
value to result. |
static <T,E extends Exception> |
hash(T value,
Throwables.ToIntFunction<? super T,E> func) |
public static <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 - ComparisonChainpublic static <T> Chain.ComparisonChain compare(T left, T right, Comparator<T> comparator)
T - left - right - comparator - ComparisonChainpublic static <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 static <T extends Comparable<? super T>> Chain.ComparisonChain compareNullLess(T left, T right)
null is smaller.T - left - right - public static <T extends Comparable<? super T>> Chain.ComparisonChain compareNullBigger(T left, T right)
null is bigger.T - left - right - public static 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 - ComparisonChainpublic static 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 - ComparisonChainpublic static 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 - ComparisonChainpublic static 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 - ComparisonChainpublic static 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 - ComparisonChainpublic static 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 - ComparisonChainpublic static 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 - ComparisonChainpublic static 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 - ComparisonChainpublic static 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 - ComparisonChainpublic static Chain.EquivalenceChain equals(Object left, Object right)
CommonUtil.equals(Object, Object), if the result of this equivalence chain
has not already been determined.left - right - EquivalenceChainpublic static <T,E extends Exception> Chain.EquivalenceChain equals(T left, T right, Throwables.BiFunction<? super T,? super T,Boolean,E> func) throws E extends Exception
T - E - left - right - func - E - the eE extends Exceptionpublic static Chain.EquivalenceChain equals(boolean left, boolean right)
boolean values as specified by left == right,
if the result of this equivalence chain has not already been
determined.left - right - EquivalenceChainpublic static Chain.EquivalenceChain equals(char left, char right)
char values as specified by left == right,
if the result of this equivalence chain has not already been
determined.left - right - EquivalenceChainpublic static Chain.EquivalenceChain equals(byte left, byte right)
byte values as specified by left == right,
if the result of this equivalence chain has not already been
determined.left - right - EquivalenceChainpublic static Chain.EquivalenceChain equals(short left, short right)
short values as specified by left == right,
if the result of this equivalence chain has not already been
determined.left - right - EquivalenceChainpublic static Chain.EquivalenceChain equals(int left, int right)
int values as specified by left == right,
if the result of this equivalence chain has not already been
determined.left - right - EquivalenceChainpublic static Chain.EquivalenceChain equals(long left, long right)
long values as specified by left == right,
if the result of this equivalence chain has not already been
determined.left - right - EquivalenceChainpublic static Chain.EquivalenceChain equals(float left, float right)
float values as specified by Float.compare(float, float), if the result of this equivalence chain has not
already been determined.left - right - EquivalenceChainpublic static Chain.EquivalenceChain equals(double left, double right)
double values as specified by Double.compare(double, double), if the result of this equivalence chain has not
already been determined.left - right - EquivalenceChainpublic static Chain.HashCodeChain hash(Object value)
value to result.value - public static <T,E extends Exception> Chain.HashCodeChain hash(T value, Throwables.ToIntFunction<? super T,E> func) throws E extends Exception
T - E - value - func - E - the eE extends Exceptionpublic static Chain.HashCodeChain hash(boolean value)
value to result.value - public static Chain.HashCodeChain hash(char value)
value to result.value - public static Chain.HashCodeChain hash(byte value)
value to result.value - public static Chain.HashCodeChain hash(short value)
value to result.value - public static Chain.HashCodeChain hash(int value)
value to result.value - public static Chain.HashCodeChain hash(long value)
value to result.value - public static Chain.HashCodeChain hash(float value)
value to result.value - public static Chain.HashCodeChain hash(double value)
value to result.value - Copyright © 2021. All rights reserved.