projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'release-0.9.5'
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
freenet
/
wot
/
Trust.java
diff --git
a/src/main/java/net/pterodactylus/sone/freenet/wot/Trust.java
b/src/main/java/net/pterodactylus/sone/freenet/wot/Trust.java
index
fe76846
..
7b18888
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/freenet/wot/Trust.java
+++ b/
src/main/java/net/pterodactylus/sone/freenet/wot/Trust.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - Trust.java - Copyright © 2010–201
3
David Roden
+ * Sone - Trust.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.freenet.wot;
import static com.google.common.base.Objects.equal;
import static com.google.common.base.Objects.equal;
+import com.google.common.base.Objects;
+
/**
* Container class for trust in the web of trust.
*
/**
* Container class for trust in the web of trust.
*
@@
-90,6
+92,11
@@
public class Trust {
return equal(getExplicit(), trust.getExplicit()) && equal(getImplicit(), trust.getImplicit()) && equal(getDistance(), trust.getDistance());
}
return equal(getExplicit(), trust.getExplicit()) && equal(getImplicit(), trust.getImplicit()) && equal(getDistance(), trust.getDistance());
}
+ @Override
+ public int hashCode() {
+ return Objects.hashCode(explicit, implicit, distance);
+ }
+
/** {@inheritDoc} */
@Override
public String toString() {
/** {@inheritDoc} */
@Override
public String toString() {