mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 12:45:35 +00:00
improved AdminConsole support for Expedition device configurations
Change-Id: I73c72f43ff603a55ec00edee4de656d48bdf06a5
This commit is contained in:
+43
@@ -29,4 +29,47 @@ public class ExpeditionDeviceConfiguration extends NamedImpl implements Serializ
|
||||
public Integer getExpeditionBoatId() {
|
||||
return expeditionBoatId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
||||
result = prime * result + ((deviceUuid == null) ? 0 : deviceUuid.hashCode());
|
||||
result = prime * result + ((expeditionBoatId == null) ? 0 : expeditionBoatId.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
ExpeditionDeviceConfiguration other = (ExpeditionDeviceConfiguration) obj;
|
||||
if (getName() == null) {
|
||||
if (other.getName() != null)
|
||||
return false;
|
||||
} else if (!getName().equals(other.getName()))
|
||||
return false;
|
||||
if (deviceUuid == null) {
|
||||
if (other.deviceUuid != null)
|
||||
return false;
|
||||
} else if (!deviceUuid.equals(other.deviceUuid))
|
||||
return false;
|
||||
if (expeditionBoatId == null) {
|
||||
if (other.expeditionBoatId != null)
|
||||
return false;
|
||||
} else if (!expeditionBoatId.equals(other.expeditionBoatId))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ExpeditionDeviceConfiguration [deviceUuid=" + deviceUuid + ", expeditionBoatId=" + expeditionBoatId
|
||||
+ ", getName()=" + getName() + "]";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user