final class Crc32cHashFunction extends AbstractStreamingHashFunction
0x11EDC6F41
.Modifier and Type | Class and Description |
---|---|
(package private) static class |
Crc32cHashFunction.Crc32cHasher |
AbstractStreamingHashFunction.AbstractStreamingHasher
Constructor and Description |
---|
Crc32cHashFunction() |
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.
|
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
public int bits()
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();
public java.lang.String toString()
toString
in class java.lang.Object