/**
 * Created by IntelliJ IDEA.
 * User: gloyaute
 * Date: 10 01 2011
 * Time: 18:39:04
 * To change this template use File | Settings | File Templates.
 */

public class Point {

    private int x;
    private int y;

    public Point(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public Point() {
        
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public boolean equals(Point p) {
        return (this.x == p.x && this.y == p.y);
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof Point)
            return equals((Point)o);
        return false;
    }

    @Override
    public String toString() {
        return "(" + x + ", " + y + ")";
    }
}
