final class Murmur3_128HashFunction extends AbstractHashFunction implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
private static class |
Murmur3_128HashFunction.Murmur3_128Hasher |
| Modifier and Type | Field and Description |
|---|---|
(package private) static HashFunction |
GOOD_FAST_HASH_128 |
(package private) static HashFunction |
MURMUR3_128 |
private int |
seed |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
Murmur3_128HashFunction(int seed) |
| Modifier and Type | Method and Description |
|---|---|
int |
bits()
Returns the number of bits (a multiple of 32) that each hash code produced by this hash
function has.
|
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
Hasher |
newHasher()
Begins a new hash code computation by returning an initialized, stateful
Hasher
instance that is ready to receive data. |
java.lang.String |
toString() |
hashBytes, hashBytes, hashBytes, hashInt, hashLong, hashObject, hashString, hashUnencodedChars, newHasherstatic final HashFunction MURMUR3_128
static final HashFunction GOOD_FAST_HASH_128
private final int seed
private static final long serialVersionUID
public int bits()
HashFunctionbits in interface HashFunctionpublic Hasher newHasher()
HashFunctionHasher
instance that is ready to receive data. Example:
HashFunction hf = Hashing.md5();
HashCode hc = hf.newHasher()
.putLong(id)
.putBoolean(isActive)
.hash();
newHasher in interface HashFunctionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(@CheckForNull
java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object