Skip to content

Commit fecdd63

Browse files
author
Peter Kohout
committed
added equals for machinePosition.
1 parent b1ee73e commit fecdd63

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88

99
group = 'io.github.robocup-logistics'
1010
archivesBaseName = "java-sdk"
11-
version = '0.1.17.9'
11+
version = '0.1.17.10'
1212

1313
description = ""
1414

src/main/java/com/rcll/domain/MachinePosition.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,12 @@
1212
public class MachinePosition {
1313
ZoneName zone;
1414
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+
}
1523
}

0 commit comments

Comments
 (0)