private static final class Hashing.ConcatenatedHashFunction extends AbstractCompositeHashFunction
functions
Modifier | Constructor and Description |
---|---|
private |
ConcatenatedHashFunction(HashFunction... functions) |
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() |
(package private) HashCode |
makeHash(Hasher[] hashers)
Constructs a
HashCode from the Hasher objects of the functions. |
newHasher, newHasher
hashBytes, hashBytes, hashBytes, hashInt, hashLong, hashObject, hashString, hashUnencodedChars
private ConcatenatedHashFunction(HashFunction... functions)
HashCode makeHash(Hasher[] hashers)
AbstractCompositeHashFunction
HashCode
from the Hasher
objects of the functions. Each of them
has consumed the entire input and they are ready to output a HashCode
. The order of the
hashers are the same order as the functions given to the constructor.makeHash
in class AbstractCompositeHashFunction
public int bits()
HashFunction
public boolean equals(@CheckForNull java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object