net.refractions.udig.tools.edit.support
Class Point

java.lang.Object
  extended by net.refractions.udig.tools.edit.support.Point

public class Point
extends java.lang.Object

A point implementation. Each point for a given location is a singleton and immutable so points can be compared with ==.

Since:
1.1.0
Author:
jones

Method Summary
 boolean equals(java.lang.Object obj)
           
 int getX()
           
 int getY()
           
 int hashCode()
           
 java.lang.String toString()
           
static Point valueOf(int x, int y)
          Get a point for location x,y
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getX

public int getX()

getY

public int getY()

valueOf

public static Point valueOf(int x,
                            int y)
Get a point for location x,y

Returns:
a point for location x,y

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