code: public static boolean equalsObjects(
        @javax.annotation.Nullable Object x, @javax.annotation.Nullable Object y) {
      return x == null ? y == null : x.equals(y);
    }
docs: Compares two Objects for equality. This functionality is provided by {@code
  Objects.equal(Object, Object)} in Java 7.