From e8a17aff1a04682f4a748f5f876671255a168da8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 20 Jul 2015 06:46:25 +0200 Subject: [PATCH] Override hashCode() --- src/main/java/net/pterodactylus/sone/data/Client.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/data/Client.java b/src/main/java/net/pterodactylus/sone/data/Client.java index ad094f2..612a258 100644 --- a/src/main/java/net/pterodactylus/sone/data/Client.java +++ b/src/main/java/net/pterodactylus/sone/data/Client.java @@ -19,6 +19,8 @@ package net.pterodactylus.sone.data; import static com.google.common.base.Objects.equal; +import com.google.common.base.Objects; + /** * Container for the client information of a {@link Sone}. * @@ -76,4 +78,9 @@ public class Client { return equal(getName(), client.getName()) && equal(getVersion(), client.getVersion()); } + @Override + public int hashCode() { + return Objects.hashCode(name, version); + } + } -- 2.7.4