From 8ce9b24c52b01b3937ca58e5a7f66b4cd01e0bd8 Mon Sep 17 00:00:00 2001 From: Sebastian Stein Date: Thu, 18 May 2017 15:26:42 +0200 Subject: [PATCH] Override hashCode --- src/main/java/exh3y/telebot/data/TelegramChat.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/exh3y/telebot/data/TelegramChat.java b/src/main/java/exh3y/telebot/data/TelegramChat.java index be33b53..2b12e06 100644 --- a/src/main/java/exh3y/telebot/data/TelegramChat.java +++ b/src/main/java/exh3y/telebot/data/TelegramChat.java @@ -49,6 +49,13 @@ public boolean equals(Object obj) } + @Override + public int hashCode() + { + return getId(); + } + + /** * Returns the chat's type *