net.sourceforge.jabm.util
Class Point

java.lang.Object
  extended by net.sourceforge.jabm.util.Point
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Point>

public class Point
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable<Point>

See Also:
Serialized Form
 

Field Summary
protected  double[] coordinates
           
 
Constructor Summary
Point(double[] coordinates)
           
 
Method Summary
 int compareTo(Point o)
           
 boolean equals(java.lang.Object obj)
           
 double[] getCoordinates()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

coordinates

protected double[] coordinates
Constructor Detail

Point

public Point(double[] coordinates)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getCoordinates

public double[] getCoordinates()

compareTo

public int compareTo(Point o)
Specified by:
compareTo in interface java.lang.Comparable<Point>