Java Utililty Methods Object Compare

List of utility methods to do Object Compare

Description

The list of methods to do Object Compare are organized into topic(s).

Method

booleanareEqualsDirect(Object bean, Object other, Object... properties)
Test if the two objects are equals.
if (bean == other) {
    return true;
if (areObjectIncompatible(bean, other)) {
    return false;
int numberOfProperties = properties.length / 2;
for (int i = 0; i < numberOfProperties; i++) {
...
booleanequivalent(Object thisObj, Object thatObj)
equivalent
if (thisObj == null) {
    return (thatObj == null);
if (thatObj == null)
    return false;
return thisObj.equals(thatObj);