File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/main/java/com/thealgorithms/datastructures/trees Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 161
161
<!-- Checks for common coding problems -->
162
162
<!-- See https://checkstyle.org/checks/coding/index.html -->
163
163
<module name =" EmptyStatement" />
164
- <!-- TODO < module name="EqualsHashCode"/> -- >
164
+ <module name =" EqualsHashCode" />
165
165
<!-- TODO <module name="HiddenField"/> -->
166
166
<module name =" IllegalInstantiation" />
167
167
<!-- TODO <module name="InnerAssignment"/> -->
Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ public boolean equals(Object obj) {
81
81
return false ;
82
82
}
83
83
84
+ @ Override
85
+ public int hashCode () {
86
+ return Arrays .hashCode (coordinates );
87
+ }
88
+
84
89
@ Override
85
90
public String toString () {
86
91
return Arrays .toString (coordinates );
You can’t perform that action at this time.
0 commit comments