This makes Point's hashCode implementation consistent with its equals method, and allows the use of Point as a HashMap key.
Point
hashCode
equals
HashMap