package misc;

// represents one point on a graph (x/y)
public class Point {
	private Double x = 0.0;
	private Double y = 0.0;
	
	public Point() {
	}
	
	public Point(Double x, Double y) {
		setX(x);
		setY(y);
	}
	
	public void setX(Double x) {
		this.x = (x == -0.0) ? 0.0 : x;
	}
	public Double getX() {
		return x;
	}
	
	public void setY(Double y) {
		this.y = (y == -0.0) ? 0.0 : y;
	}
	public Double getY() {
		return y;
	}
}

@@ -8,16 +8,17 @@
  misc;%0A%0A
+%0A
 // repre
@@ -423,10 +423,322 @@
 n y;%0A%09%7D%0A
+%09%0A%09@Override%0A%09public boolean equals(Object o) %7B%0A%09%09return hashCode() == o.hashCode();%0A%09%7D%0A%09%0A%09@Override%0A%09public int hashCode() %7B%0A        final int prime = 31;%0A        int result = 1;%0A%0A        result = prime * result + x.hashCode();%0A        result = prime * result + y.hashCode();%0A        %0A        return result;%0A%09%7D%0A
 %7D%0A

make point equals asserteable