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, newHasherhashBytes, hashBytes, hashBytes, hashInt, hashLong, hashObject, hashString, hashUnencodedCharsprivate ConcatenatedHashFunction(HashFunction... functions)
HashCode makeHash(Hasher[] hashers)
AbstractCompositeHashFunctionHashCode 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 AbstractCompositeHashFunctionpublic int bits()
HashFunctionpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object