Change file names in copyright lines
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Client.java
index b77b9f2..612a258 100644 (file)
 
 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}.
  *
@@ -65,4 +69,18 @@ public class Client {
                return version;
        }
 
+       @Override
+       public boolean equals(Object object) {
+               if (!(object instanceof Client)) {
+                       return false;
+               }
+               Client client = (Client) object;
+               return equal(getName(), client.getName()) && equal(getVersion(), client.getVersion());
+       }
+
+       @Override
+       public int hashCode() {
+               return Objects.hashCode(name, version);
+       }
+
 }