Author: toad
Date: 2009-02-03 18:18:17 +0000 (Tue, 03 Feb 2009)
New Revision: 25504
Modified:
branches/db4o/freenet/src/freenet/keys/ClientSSKBlock.java
Log:
More equals/hashCode
Modified: branches/db4o/freenet/src/freenet/keys/ClientSSKBlock.java
===================================================================
--- branches/db4o/freenet/src/freenet/keys/ClientSSKBlock.java 2009-02-03
18:15:53 UTC (rev 25503)
+++ branches/db4o/freenet/src/freenet/keys/ClientSSKBlock.java 2009-02-03
18:18:17 UTC (rev 25504)
@@ -123,4 +123,15 @@
}
}
+ public int hashCode() {
+ return super.hashCode() ^ key.hashCode();
+ }
+
+ public boolean equals(Object o) {
+ if(!(o instanceof ClientSSKBlock)) return false;
+ ClientSSKBlock block = (ClientSSKBlock) o;
+ if(!key.equals(block.key)) return false;
+ return super.equals(o);
+ }
+
}
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs