File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed
exercises/robot-simulator/src/example/java Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -9,26 +9,26 @@ final class GridPosition {
9
9
this .y = y ;
10
10
}
11
11
12
- @ Override
13
- public int hashCode () {
14
- final int prime = 31 ;
15
- int result = 1 ;
16
- result = prime * result + x ;
17
- result = prime * result + y ;
18
- return result ;
12
+ @ Override
13
+ public int hashCode () {
14
+ final int prime = 31 ;
15
+ int result = 1 ;
16
+ result = prime * result + x ;
17
+ result = prime * result + y ;
18
+ return result ;
19
19
}
20
20
21
- @ Override
22
- public boolean equals (Object obj ) {
23
- if (this == obj ) {
24
- return true ;
25
- } else if (obj == null || getClass () != obj .getClass ()) {
26
- return false ;
27
- } else if (x != ((GridPosition ) obj ).x || y != ((GridPosition )obj ).y ) {
28
- return false ;
29
- } else {
30
- return true ;
31
- }
21
+ @ Override
22
+ public boolean equals (Object obj ) {
23
+ if (this == obj ) {
24
+ return true ;
25
+ } else if (obj == null || getClass () != obj .getClass ()) {
26
+ return false ;
27
+ } else if (x != ((GridPosition ) obj ).x || y != ((GridPosition )obj ).y ) {
28
+ return false ;
29
+ } else {
30
+ return true ;
31
+ }
32
32
}
33
33
34
34
}
You can’t perform that action at this time.
0 commit comments