|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Hash
Interface that governs implementations
MurmurHash2| Method Summary | |
|---|---|
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). |
| Method Detail |
|---|
int hash(byte[] payload)
payload - a byte array to hash
int hash(int hashcode)
Object.hashCode().
hashcode - an object's hashcode
int hash(Object o)
o - object to hash
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||