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

        Note note = (Note) o;

        if (id != note.id) return false;
        if (headLine != null ? !headLine.equals(note.headLine) : note.headLine != null) return false;
        if (text != null ? !text.equals(note.text) : note.text != null) return false;

        return true;
    }