Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Commit

Permalink
update documentation for Note equals method
Browse files Browse the repository at this point in the history
  • Loading branch information
rickardzettervall committed Sep 19, 2019
1 parent 3d418bb commit dae93da
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/src/main/java/tech/zettervall/notes/models/Note.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,11 @@ public void setFavorite(boolean favorite) {
}

/**
* Compare contents for diff check in Adapter, determines whether to update the item
* in adapter. Whenever modifiedEpoch changed it means that the Note text fields was
* modified. We also need to check if favorite status or notificationEpoch changed
* because the adapter displays an icon for those.
* Compare contents for diff check in adapter,
* determines whether to update the item in adapter.
*
* @param obj Note to compare to this
* @return true when contents are the same
* @return true when contents are the same, false = adapter will update
*/
@Override
public boolean equals(@Nullable Object obj) {
Expand Down

0 comments on commit dae93da

Please sign in to comment.