List of utility methods to do Object Equal
boolean | equals(Object a, Object b) equals return (a == b) || (a == null ? false : a.equals(b));
|
boolean | equalsFor(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; ... |
boolean | equals(T o0, T o1) equals return o0 == null ? o1 == null : o0.equals(o1);
|
Boolean | quickEquals(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; |