Android Utililty Methods Object Equal

List of utility methods to do Object Equal

Description

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

Method

booleanequals(Object a, Object b)
equals
return (a == b) || (a == null ? false : a.equals(b));
booleanequalsFor(Object[] aThisSignificantFields, Object[] aThatSignificantFields)
Return the result of comparing all significant fields.
if (aThisSignificantFields.length != aThatSignificantFields.length) {
    throw new IllegalArgumentException(
            "Array lengths do not match. 'This' length is "
                    + aThisSignificantFields.length
                    + ", while 'That' length is "
                    + aThatSignificantFields.length + ".");
boolean result = true;
...
booleanequals(T o0, T o1)
equals
return o0 == null ? o1 == null : o0.equals(o1);
BooleanquickEquals(Object aThis, Object aThat)
Quick checks for possibly determining equality of two objects.
Boolean result = null;
if (aThis == aThat) {
    result = Boolean.TRUE;
} else {
    Class<?> thisClass = aThis.getClass();
    if (!thisClass.isInstance(aThat)) {
        result = Boolean.FALSE;
return result;