- All Implemented Interfaces:
Hash
public class Murmur3_32Hash
extends Object
implements Hash
Implementation of the MurmurHash3 non-cryptographic hash function.
-
Method Summary
int
Generate the hash of a given byte array.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getInstance
public static Hash getInstance()
-
makeHash
public int makeHash(byte[] b)
Description copied from interface: Hash
Generate the hash of a given byte array.
- Specified by:
makeHash
in interface Hash
- Returns:
- The hash of
b
, which is non-negative integer.