public static boolean equals(Object object1, Object object2) {
        if (object1 == object2) {
            return true;
        }
        if (object1 == null || object2 == null) {
            return false;
        }
        return object1.equals(object2);
    }
<p>Compares two objects for equality, where either one or both
objects may be {@code null}.</p>

<pre>
ObjectUtils.equals(null, null)                  = true
ObjectUtils.equals(null, "")                    = false
ObjectUtils.equals("", null)                    = false
ObjectUtils.equals("", "")                      = true
ObjectUtils.equals(Boolean.TRUE, null)          = false
ObjectUtils.equals(Boolean.TRUE, "true")        = false
ObjectUtils.equals(Boolean.TRUE, Boolean.TRUE)  = true
ObjectUtils.equals(Boolean.TRUE, Boolean.FALSE) = false
</pre>

@param object1  the first object, may be {@code null}
@param object2  the second object, may be {@code null}
@return {@code true} if the values of both objects are the same
android/android_framework/base/src/main/java/lang3/ObjectUtils.java