public class EquivalenceUtils
extends java.lang.Object
Constructor and Description |
---|
EquivalenceUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areObjectsEquivalent(java.lang.Object val1,
java.lang.Object val2,
boolean shouldCompareCommonProps)
Return true if two objects are equivalent.
|
static boolean |
hasEquivalentFields(java.lang.Object a,
java.lang.Object b)
Compare all private final fields in an object
|
static boolean |
hasEquivalentFields(java.lang.Object a,
java.lang.Object b,
boolean shouldCompareCommonProps)
Compare all private final fields in an object
|
static <T> boolean |
isEqualOrEquivalentTo(T a,
T b)
Checks if to objects are equivalent if they implement
Equivalence or compares the
objects field by field. |
public static <T> boolean isEqualOrEquivalentTo(T a, T b)
Equivalence
or compares the
objects field by field.public static boolean hasEquivalentFields(java.lang.Object a, java.lang.Object b)
public static boolean hasEquivalentFields(java.lang.Object a, java.lang.Object b, boolean shouldCompareCommonProps)
public static boolean areObjectsEquivalent(java.lang.Object val1, java.lang.Object val2, boolean shouldCompareCommonProps)