public class ECPoint extends Object
Modifier and Type | Field and Description |
---|---|
static ECPoint |
POINT_INFINITY
This defines the point at infinity.
|
Constructor and Description |
---|
ECPoint(BigInteger x,
BigInteger y)
Creates an ECPoint from the specified affine x-coordinate
x and affine y-coordinate y . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares this elliptic curve point for equality with
the specified object.
|
BigInteger |
getAffineX()
Returns the affine x-coordinate
x . |
BigInteger |
getAffineY()
Returns the affine y-coordinate
y . |
int |
hashCode()
Returns a hash code value for this elliptic curve point.
|
public static final ECPoint POINT_INFINITY
public ECPoint(BigInteger x, BigInteger y)
x
and affine y-coordinate y
.x
- the affine x-coordinate.y
- the affine y-coordinate.NullPointerException
- if x
or
y
is null.public BigInteger getAffineX()
x
.
Note: POINT_INFINITY has a null affine x-coordinate.public BigInteger getAffineY()
y
.
Note: POINT_INFINITY has a null affine y-coordinate.public boolean equals(Object obj)
equals
in class Object
obj
- the object to be compared.obj
is an instance of
ECPoint and the affine coordinates match, false otherwise.Object.hashCode()
,
HashMap
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2018, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.