public static boolean isEqualsMethod(Method method) {
        if (method == null || !"equals".equals(method.getName())) {
            return false;
        }
        Class<?>[] paramTypes = method.getParameterTypes();
        return paramTypes.length == 1 && paramTypes[0] == Object.class;
    }
Determine whether the given method is an "equals" method.

@see Object#equals(Object)
android/android_framework/base/src/main/java/util/ReflectionUtils.java