projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace JSON return object with Kotlin version
[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
ad094f2
..
650ef16
100644
(file)
--- 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–201
3
David Roden
+ * Sone - Client.java - Copyright © 2010–201
6
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
*
* 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,6
+19,8
@@
package net.pterodactylus.sone.data;
import static com.google.common.base.Objects.equal;
import static com.google.common.base.Objects.equal;
+import com.google.common.base.Objects;
+
/**
* Container for the client information of a {@link Sone}.
*
/**
* 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());
}
return equal(getName(), client.getName()) && equal(getVersion(), client.getVersion());
}
+ @Override
+ public int hashCode() {
+ return Objects.hashCode(name, version);
+ }
+
}
}