projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store insert fingerprint in “Sone inserted” event.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
Client.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/Client.java
b/src/main/java/net/pterodactylus/sone/data/Client.java
index
b77b9f2
..
ad094f2
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/Client.java
+++ b/
src/main/java/net/pterodactylus/sone/data/Client.java
@@
-17,6
+17,8
@@
package net.pterodactylus.sone.data;
package net.pterodactylus.sone.data;
+import static com.google.common.base.Objects.equal;
+
/**
* Container for the client information of a {@link Sone}.
*
/**
* Container for the client information of a {@link Sone}.
*
@@
-65,4
+67,13
@@
public class Client {
return version;
}
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());
+ }
+
}
}