Skip to content

Commit

Permalink
Add wrongly deleted method
Browse files Browse the repository at this point in the history
  • Loading branch information
IanTeo committed Nov 5, 2016
1 parent d345089 commit 576ec1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/seedu/taskitty/model/tag/Tag.java
Expand Up @@ -46,6 +46,11 @@ public boolean equals(Object other) {
|| (other instanceof Tag // instanceof handles nulls
&& this.tagName.equals(((Tag) other).tagName)); // state check
}

@Override
public int hashCode() {
return tagName.hashCode();
}

/**
* Format state as text for viewing.
Expand Down

0 comments on commit 576ec1f

Please sign in to comment.