Skip to content

Commit

Permalink
Override hashCode
Browse files Browse the repository at this point in the history
  • Loading branch information
EXH3Y committed May 18, 2017
1 parent 7ca2f41 commit 8ce9b24
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/exh3y/telebot/data/TelegramChat.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ public boolean equals(Object obj)
}


@Override
public int hashCode()
{
return getId();
}


/**
* Returns the chat's type
*
Expand Down

0 comments on commit 8ce9b24

Please sign in to comment.