part7
Class Utilities.Point

java.lang.Object
  extended bypart7.Utilities.Point
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
Utilities

public static class Utilities.Point
extends java.lang.Object
implements java.lang.Comparable

A class used to represent a point (x,y) on an elliptic curve.
Note that objects of type Point are immutable.


Constructor Summary
Utilities.Point(java.math.BigInteger x, java.math.BigInteger y)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
          A method that implements lexicographic ordering of points.
 java.math.BigInteger getX()
           
 java.math.BigInteger getY()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Utilities.Point

public Utilities.Point(java.math.BigInteger x,
                       java.math.BigInteger y)
                throws java.lang.Exception
Method Detail

compareTo

public int compareTo(java.lang.Object obj)
A method that implements lexicographic ordering of points.
Required by java.language.Comparible to allow objects of type Point to be compared when added to collection types such as AbstractSet.

Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()

getX

public java.math.BigInteger getX()
                          throws java.lang.Exception
Throws:
java.lang.Exception

getY

public java.math.BigInteger getY()
                          throws java.lang.Exception
Throws:
java.lang.Exception