@ -147,4 +147,21 @@ public class Device implements Serializable{
"]";
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (!(o instanceof Device))
return false;
Device device = (Device) o;
return getDeviceIdentifier().equals(device.getDeviceIdentifier());
public int hashCode() {
return getDeviceIdentifier().hashCode();