File tree Expand file tree Collapse file tree 3 files changed +5
-21
lines changed
src/main/java/com/rcll/domain Expand file tree Collapse file tree 3 files changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ plugins {
88
99group = ' io.github.robocup-logistics'
1010archivesBaseName = " java-sdk"
11- version = ' 0.1.17.10 '
11+ version = ' 0.1.17.11 '
1212
1313description = " "
1414
Original file line number Diff line number Diff line change 11package com .rcll .domain ;
22
3- import lombok .AllArgsConstructor ;
4- import lombok .Getter ;
5- import lombok .NoArgsConstructor ;
6- import lombok .Setter ;
3+ import lombok .*;
74
85@ Getter
96@ Setter
107@ AllArgsConstructor
118@ NoArgsConstructor
9+ @ EqualsAndHashCode
1210public class MachinePosition {
1311 ZoneName zone ;
1412 Integer rotation ;
15-
16- @ Override
17- public boolean equals (Object obj ) {
18- if (obj instanceof MachinePosition ) {
19- return ((MachinePosition ) obj ).zone .equals (this .zone ) && rotation == ((MachinePosition ) obj ).rotation ;
20- }
21- return false ;
22- }
2313}
Original file line number Diff line number Diff line change 11package com .rcll .domain ;
22
33import lombok .AllArgsConstructor ;
4+ import lombok .EqualsAndHashCode ;
45import org .robocup_logistics .llsf_msgs .ZoneProtos ;
56
67@ AllArgsConstructor
8+ @ EqualsAndHashCode
79public class ZoneName {
810 private final String rawZone ;
911
@@ -30,12 +32,4 @@ public ZoneProtos.Zone toProto() {
3032 public String toString () {
3133 return this .rawZone ;
3234 }
33-
34- @ Override
35- public boolean equals (Object obj ) {
36- if (obj instanceof ZoneName ) {
37- return ((ZoneName ) obj ).rawZone .equals (this .rawZone );
38- }
39- return false ;
40- }
4135}
You can’t perform that action at this time.
0 commit comments