Ah, gotcha. This is from Marty's 331 slides as a "correct equals() method":

`public boolean equals(Object o) {   // Point
    if (o != null && getClass() == o.getClass()) {
        Point other = (Point) o;
        return x == other.x && y == other.y;
    } else {
        return false;
    }
}`