final class Murmur3_128HashFunction extends AbstractStreamingHashFunction implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
private static class |
Murmur3_128HashFunction.Murmur3_128Hasher |
AbstractStreamingHashFunction.AbstractStreamingHasher
Modifier and Type | Field and Description |
---|---|
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, hashInt, hashLong, hashObject, hashString, hashUnencodedChars, newHasher
private final int seed
private static final long serialVersionUID
public int bits()
HashFunction
bits
in interface HashFunction
public Hasher newHasher()
HashFunction
Hasher
instance that is ready to receive data. Example:
HashFunction hf = Hashing.md5();
HashCode hc = hf.newHasher()
.putLong(id)
.putBoolean(isActive)
.hash();
newHasher
in interface HashFunction
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(@Nullable java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object