Point: Implement hashCode
Compare changes
@@ -42,6 +44,11 @@ public class Point {
@@ -42,6 +44,11 @@ public class Point {
This makes Point
's hashCode
implementation consistent with its
equals
method, and allows the use of Point
as a HashMap
key.