Package com.landawn.abacus.util
Class Chain.EquivalenceChain
java.lang.Object
com.landawn.abacus.util.Chain.EquivalenceChain
- Enclosing class:
- Chain
The Class EquivalenceChain.
-
Method Summary
Modifier and TypeMethodDescriptionequals
(boolean left, boolean right) Compares twoboolean
values as specified byleft == right
, if the result of this equivalence chain has not already been determined.equals
(byte left, byte right) Compares twobyte
values as specified byleft == right
, if the result of this equivalence chain has not already been determined.equals
(char left, char right) Compares twochar
values as specified byleft == right
, if the result of this equivalence chain has not already been determined.equals
(double left, double right) Compares twodouble
values as specified byDouble.compare(double, double)
, if the result of this equivalence chain has not already been determined.equals
(float left, float right) Compares twofloat
values as specified byFloat.compare(float, float)
, if the result of this equivalence chain has not already been determined.equals
(int left, int right) Compares twoint
values as specified byleft == right
, if the result of this equivalence chain has not already been determined.equals
(long left, long right) Compares twolong
values as specified byleft == right
, if the result of this equivalence chain has not already been determined.equals
(short left, short right) Compares twoint
values as specified byleft == right
, if the result of this equivalence chain has not already been determined.Compares two comparable objects as specified byCommonUtil.equals(Object, Object)
, if the result of this equivalence chain has not already been determined.<T,
E extends Exception>
Chain.EquivalenceChainequals
(T left, T right, Throwables.BiFunction<? super T, ? super T, Boolean, E> func) boolean
result()
-
Method Details
-
equals
Compares two comparable objects as specified byCommonUtil.equals(Object, Object)
, if the result of this equivalence chain has not already been determined.- Parameters:
left
-right
-- Returns:
- this
-
equals
public <T,E extends Exception> Chain.EquivalenceChain equals(T left, T right, Throwables.BiFunction<? super T, ? super T, throws EBoolean, E> func) - Type Parameters:
T
-E
-- Parameters:
left
-right
-func
-- Returns:
- Throws:
E
- the e
-
equals
Compares twoboolean
values as specified byleft == right
, if the result of this equivalence chain has not already been determined.- Parameters:
left
-right
-- Returns:
- this
-
equals
Compares twochar
values as specified byleft == right
, if the result of this equivalence chain has not already been determined.- Parameters:
left
-right
-- Returns:
- this
-
equals
Compares twobyte
values as specified byleft == right
, if the result of this equivalence chain has not already been determined.- Parameters:
left
-right
-- Returns:
- this
-
equals
Compares twoint
values as specified byleft == right
, if the result of this equivalence chain has not already been determined.- Parameters:
left
-right
-- Returns:
- this
-
equals
Compares twoint
values as specified byleft == right
, if the result of this equivalence chain has not already been determined.- Parameters:
left
-right
-- Returns:
- this
-
equals
Compares twolong
values as specified byleft == right
, if the result of this equivalence chain has not already been determined.- Parameters:
left
-right
-- Returns:
- this
-
equals
Compares twofloat
values as specified byFloat.compare(float, float)
, if the result of this equivalence chain has not already been determined.- Parameters:
left
-right
-- Returns:
- this
-
equals
Compares twodouble
values as specified byDouble.compare(double, double)
, if the result of this equivalence chain has not already been determined.- Parameters:
left
-right
-- Returns:
- this
-
result
public boolean result()- Returns:
-