@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Device)) return false;

        Device device = (Device) o;

        if (id != device.id) return false;
        if (name != null ? !name.equals(device.name) : device.name != null) return false;
        if (owner != null ? !owner.equals(device.owner) : device.owner != null) return false;

        return true;
    }