Add PreKeyList hashCode

This commit is contained in:
Matt Corallo committed 2014-01-08 16:10:18 -10:00
1 parent 7d8336fd30
commit 2dc5857645
1 file changed
+7
@@ -50,4 +50,11 @@ public class UnstructuredPreKeyList {
}
return true;
}
public int hashCode() {
int ret = 0xFBA4C795 * keys.size();
for (PreKey key : keys)
ret ^= key.getPublicKey().hashCode();
return ret;
}
}