applications
Class ClosestPoints.Point2

java.lang.Object
  |
  +--applications.ClosestPoints.Point
        |
        +--applications.ClosestPoints.Point2

public static class ClosestPoints.Point2
extends ClosestPoints.Point
implements java.lang.Comparable

point with an integer field, implements Comparable using y-coordinates


Constructor Summary
ClosestPoints.Point2(double theX, double theY, int theP)
           
 
Method Summary
 int compareTo(java.lang.Object x)
           
 boolean equals(java.lang.Object x)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClosestPoints.Point2

public ClosestPoints.Point2(double theX,
                            double theY,
                            int theP)
Method Detail

compareTo

public int compareTo(java.lang.Object x)
Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object x)
Returns:
true iff this.y == x.y
Overrides:
equals in class java.lang.Object