Package com.google.common.hash
Class Hashing.ConcatenatedHashFunction
- java.lang.Object
-
- com.google.common.hash.AbstractHashFunction
-
- com.google.common.hash.AbstractCompositeHashFunction
-
- com.google.common.hash.Hashing.ConcatenatedHashFunction
-
- All Implemented Interfaces:
HashFunction
- Enclosing class:
- Hashing
private static final class Hashing.ConcatenatedHashFunction extends AbstractCompositeHashFunction
-
-
Field Summary
-
Fields inherited from class com.google.common.hash.AbstractCompositeHashFunction
functions
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ConcatenatedHashFunction(HashFunction... functions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 aHashCode
from theHasher
objects of the functions.-
Methods inherited from class com.google.common.hash.AbstractCompositeHashFunction
newHasher, newHasher
-
Methods inherited from class com.google.common.hash.AbstractHashFunction
hashBytes, hashBytes, hashBytes, hashInt, hashLong, hashObject, hashString, hashUnencodedChars
-
-
-
-
Constructor Detail
-
ConcatenatedHashFunction
private ConcatenatedHashFunction(HashFunction... functions)
-
-
Method Detail
-
makeHash
HashCode makeHash(Hasher[] hashers)
Description copied from class:AbstractCompositeHashFunction
Constructs aHashCode
from theHasher
objects of the functions. Each of them has consumed the entire input and they are ready to output aHashCode
. The order of the hashers are the same order as the functions given to the constructor.- Specified by:
makeHash
in classAbstractCompositeHashFunction
-
bits
public int bits()
Description copied from interface:HashFunction
Returns the number of bits (a multiple of 32) that each hash code produced by this hash function has.
-
equals
public boolean equals(@CheckForNull java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-