public interface Hash
MurmurHash2,
MurmurHash3| Modifier and Type | Method and Description |
|---|---|
int |
hash(byte[] payload)
Hashes a byte array efficiently.
|
int |
hash(int hashcode)
An incremental version of the hash function, that spreads a pre-calculated
hash code, such as one derived from
Object.hashCode(). |
int |
hash(Object o)
A helper that calculates the hashcode of an object, choosing the optimal
mechanism of hash calculation after considering the type of the object
(byte array, String or Object).
|
int hash(byte[] payload)
payload - a byte array to hashint hash(int hashcode)
Object.hashCode().hashcode - an object's hashcodeint hash(Object o)
o - object to hashCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.