package fr.xebia.mowitnow;

/**
 * The position of the mower is the triplet x, y and orientation
 *
 * @author abachar
 */
public class Position {

	/**
	 * (x, y) coordinates
	 */
	private int x;
	private int y;

	/**
	 * Constructor with the x and y coordinates, the default orientation north will be used
	 *
	 * @param x The initial value of X coordinate
	 * @param y The initial value of Y coordinate
	 */
	public Position(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}
}

@@ -631,11 +631,383 @@
  = y;%0A%09%7D
+%0A%0A%09@Override%0A%09public boolean equals(Object o) %7B%0A%09%09if (this == o) return true;%0A%09%09if (o == null %7C%7C getClass() != o.getClass()) return false;%0A%0A%09%09Position position = (Position) o;%0A%0A%09%09if (x != position.x) return false;%0A%09%09if (y != position.y) return false;%0A%0A%09%09return true;%0A%09%7D%0A%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09int result = x;%0A%09%09result = 31 * result + y;%0A%09%09return result;%0A%09%7D
 %0A%7D%0A

Generate equals and hashCode methods