From: David ‘Bombe’ Roden Date: Mon, 20 Jul 2015 04:46:25 +0000 (+0200) Subject: Override hashCode() X-Git-Tag: 0.9.3^2~16^2~3 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e8a17aff1a04682f4a748f5f876671255a168da8;p=Sone.git Override hashCode() --- 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); + } + }