improved AdminConsole support for Expedition device configurations

Change-Id: I73c72f43ff603a55ec00edee4de656d48bdf06a5
This commit is contained in:
Axel Uhl
2017-10-25 18:42:10 +02:00
parent d7924a3fdf
commit 7e33e88d70
10 changed files with 105 additions and 50 deletions
@@ -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() + "]";
}
}