@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Record record = (Record) o;

        if (id != record.id) return false;
        if (type != record.type) return false;
        if (value != null ? !value.equals(record.value) : record.value != null) return false;

        return true;
    }