X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FClient.java;h=f23decff648803e5026ba94b25b8b4b447eda9a9;hp=ad094f25f22b146bc6c59f321b1a1d653613f91b;hb=179e7da4d8d8a474d0b622d60b5f5d32d6ab4052;hpb=f229fe41f708d2b275c20ceb9aba5993761218a3 diff --git a/src/main/java/net/pterodactylus/sone/data/Client.java b/src/main/java/net/pterodactylus/sone/data/Client.java index ad094f2..f23decf 100644 --- a/src/main/java/net/pterodactylus/sone/data/Client.java +++ b/src/main/java/net/pterodactylus/sone/data/Client.java @@ -1,5 +1,5 @@ /* - * Sone - Client.java - Copyright © 2010–2013 David Roden + * Sone - Client.java - Copyright © 2010–2019 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,10 +19,10 @@ 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}. - * - * @author David ‘Bombe’ Roden */ public class Client { @@ -76,4 +76,9 @@ public class Client { return equal(getName(), client.getName()) && equal(getVersion(), client.getVersion()); } + @Override + public int hashCode() { + return Objects.hashCode(name, version); + } + }