@SuppressWarnings("rawtypes")
  @Override
  public boolean equals(final Object obj) {
    if (this == obj) {
      return true;
    }
    if (!(obj instanceof AbstractFieldPoint)) {
      return false;
    }

    final AbstractFieldPoint other = (AbstractFieldPoint) obj;
    return Objects.equals(x, other.x) && Objects.equals(y, other.y);
  }
New instance of generic type U.

@param x the x
@param y the y
@return the U
crypto/algorithms/src/main/java/org/hyperledger/besu/crypto/altbn128/AbstractFieldPoint.java