# ECPoint

public class **ECPoint** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
This immutable class represents a point on an elliptic curve (EC)
in affine coordinates. Other coordinate systems can
extend this class to represent this point in other
coordinates.

### Field Summary

|---|---|---|
| public static final [ECPoint](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/spec/ECPoint.html) | [POINT_INFINITY](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/spec/ECPoint.html#POINT_INFINITY) | This defines the point at infinity. |

### Public Constructor Summary

|---|---|
|   | [ECPoint](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/spec/ECPoint.html#ECPoint(java.math.BigInteger,%20java.math.BigInteger))(BigInteger x, BigInteger y) Creates an ECPoint from the specified affine x-coordinate `x` and affine y-coordinate `y`. |

### Public Method Summary

|---|---|
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/spec/ECPoint.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this elliptic curve point for equality with the specified object. |
| BigInteger | [getAffineX](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/spec/ECPoint.html#getAffineX())() Returns the affine x-coordinate `x`. |
| BigInteger | [getAffineY](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/spec/ECPoint.html#getAffineY())() Returns the affine y-coordinate `y`. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/spec/ECPoint.html#hashCode())() Returns a hash code value for this elliptic curve point. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

## Fields

#### public static final ECPoint
**POINT_INFINITY**

This defines the point at infinity.

## Public Constructors

#### public
**ECPoint**
(BigInteger x, BigInteger y)

Creates an ECPoint from the specified affine x-coordinate
`x` and affine y-coordinate `y`.

##### Parameters

| x | the affine x-coordinate. |
| y | the affine y-coordinate. |
|---|---|

##### Throws

| [NullPointerException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NullPointerException.html) | if `x` or `y` is null. |
|---|---|

## Public Methods

#### public boolean
**equals**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj)

Compares this elliptic curve point for equality with
the specified object.

##### Parameters

| obj | the object to be compared. |
|---|---|

##### Returns

- true if `obj` is an instance of ECPoint and the affine coordinates match, false otherwise.

#### public BigInteger
**getAffineX**
()

Returns the affine x-coordinate `x`.
Note: POINT_INFINITY has a null affine x-coordinate.

##### Returns

- the affine x-coordinate.

#### public BigInteger
**getAffineY**
()

Returns the affine y-coordinate `y`.
Note: POINT_INFINITY has a null affine y-coordinate.

##### Returns

- the affine y-coordinate.

#### public int
**hashCode**
()

Returns a hash code value for this elliptic curve point.

##### Returns

- a hash code value.