package model;

/**
 * An x, y point.
 *
 * @author Eli Skeggs
 */
public class Point {
  public int x, y;

  /**
   * Create a Point.
   *
   * @param x
   * @param y
   */
  public Point(int x, int y) {
    this.x = x;
    this.y = y;
  }

  public int hashCode() {
    return (new int[] {x, y}).hashCode();
  }

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

@@ -241,118 +241,475 @@
 %0A%0A  
-public int hashCode() %7B%0A    return (new int%5B%5D %7Bx, y%7D).hashCode();%0A  %7D%0A%0A  public boolean equals(Point other) %7B%0A
+/**%0A   * Hash code for the point, based on the netbeans recommendation.%0A   *%0A   * @return The hash code for this point.%0A   */%0A  @Override%0A  public int hashCode() %7B%0A    return 71 * (497 + x) + y;%0A  %7D%0A%0A  /**%0A   * Check if two points are equal.%0A   *%0A   * @param other The point to compare against.%0A   * @return Whether the points are equal.%0A   */%0A  @Override%0A  public boolean equals(Object other) %7B%0A    if (other instanceof Point) %7B%0A      Point point = (Point) other;%0A  
     
@@ -720,21 +720,21 @@
 rn x == 
-other
+point
 .x && y 
@@ -740,15 +740,39 @@
  == 
-other.y
+point.y;%0A    %7D%0A    return false
 ;%0A  

Fix Point HashCollection compatibility