Package de.aristaflow.adept2.util
Class EqualityTools
java.lang.Object
de.aristaflow.adept2.util.EqualityTools
Tool methods supporting implementation of
Object.equals(Object).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> booleanequalsWithNull(Supplier<T> o1, Supplier<T> o2) Gets whether the objects provided by the designated suppliers are either bothnullor are equal with respect to equals of the first object.
-
Constructor Details
-
EqualityTools
public EqualityTools()
-
-
Method Details
-
equalsWithNull
Gets whether the objects provided by the designated suppliers are either bothnullor are equal with respect to equals of the first object.- Parameters:
o1- The supplier for the first object. This supplier must not benull(but it can supplynull).o2- The supplier for the second object. This supplier must not benull(but it can supplynull).- Returns:
- Whether the objects provided by the designated suppliers are either both
nullor equal.
-