Methods Summary |
---|
public boolean | equals(java.lang.Object other)Returns whether the specified object and this elliptic curve point are
equal.
if (this == other) {
return true;
}
if (other instanceof ECPoint) {
if (this.affineX != null) {
ECPoint otherPoint = (ECPoint)other;
// no need to check for null in this case
return this.affineX.equals(otherPoint.affineX) &&
this.affineY.equals(otherPoint.affineY);
} else {
return other == POINT_INFINITY;
}
}
return false;
|
public java.math.BigInteger | getAffineX()Returns the x-coordinate.
return affineX;
|
public java.math.BigInteger | getAffineY()Returns the y-coordinate.
return affineY;
|
public int | hashCode()Returns the hashcode of this elliptic curve point.
if (this.affineX != null) {
return affineX.hashCode() * 31 + affineY.hashCode();
}
return 11;
|