Add PreKeyList hashCode

This commit is contained in:
Matt Corallo
2014-01-08 16:10:18 -10:00
parent 7d8336fd30
commit 2dc5857645

View File

@@ -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;
}
}