Add PreKeyList hashCode
This commit is contained in:
parent
7d8336fd30
commit
2dc5857645
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue