Uses of Interface
com.google.common.hash.HashFunction
-
Packages that use HashFunction Package Description com.google.common.hash Hash functions and related structures.com.google.common.io This package contains utility methods and classes for working with Java I/O; for example input streams, output streams, readers, writers, and files. -
-
Uses of HashFunction in com.google.common.hash
Methods in com.google.common.hash that return HashFunction Modifier and Type Method Description static HashFunction
Hashing. adler32()
Returns a hash function implementing the Adler-32 checksum algorithm (32 hash bits) by delegating to theAdler32
Checksum
.static HashFunction
Hashing. concatenating(HashFunction first, HashFunction second, HashFunction... rest)
Returns a hash function which computes its hash code by concatenating the hash codes of the underlying hash functions together.static HashFunction
Hashing. concatenating(java.lang.Iterable<HashFunction> hashFunctions)
Returns a hash function which computes its hash code by concatenating the hash codes of the underlying hash functions together.static HashFunction
Hashing. crc32()
Returns a hash function implementing the CRC-32 checksum algorithm (32 hash bits) by delegating to theCRC32
Checksum
.static HashFunction
Hashing. crc32c()
Returns a hash function implementing the CRC32C checksum algorithm (32 hash bits) as described by RFC 3720, Section 12.1.static HashFunction
Hashing. goodFastHash(int minimumBits)
Returns a general-purpose, temporary-use, non-cryptographic hash function.static HashFunction
Hashing. md5()
Returns a hash function implementing the MD5 hash algorithm (128 hash bits) by delegating to the MD5MessageDigest
.static HashFunction
Hashing. murmur3_128()
Returns a hash function implementing the 128-bit murmur3 algorithm, x64 variant (little-endian variant), using a seed value of zero.static HashFunction
Hashing. murmur3_128(int seed)
Returns a hash function implementing the 128-bit murmur3 algorithm, x64 variant (little-endian variant), using the given seed value.static HashFunction
Hashing. murmur3_32()
Returns a hash function implementing the 32-bit murmur3 algorithm, x86 variant (little-endian variant), using a seed value of zero.static HashFunction
Hashing. murmur3_32(int seed)
Returns a hash function implementing the 32-bit murmur3 algorithm, x86 variant (little-endian variant), using the given seed value.static HashFunction
Hashing. sha1()
Returns a hash function implementing the SHA-1 algorithm (160 hash bits) by delegating to the SHA-1MessageDigest
.static HashFunction
Hashing. sha256()
Returns a hash function implementing the SHA-256 algorithm (256 hash bits) by delegating to the SHA-256MessageDigest
.static HashFunction
Hashing. sha384()
Returns a hash function implementing the SHA-384 algorithm (384 hash bits) by delegating to the SHA-384MessageDigest
.static HashFunction
Hashing. sha512()
Returns a hash function implementing the SHA-512 algorithm (512 hash bits) by delegating to the SHA-512MessageDigest
.static HashFunction
Hashing. sipHash24()
Returns a hash function implementing the 64-bit SipHash-2-4 algorithm using a seed value ofk = 00 01 02 ...
.static HashFunction
Hashing. sipHash24(long k0, long k1)
Returns a hash function implementing the 64-bit SipHash-2-4 algorithm using the given seed.Methods in com.google.common.hash with parameters of type HashFunction Modifier and Type Method Description static HashFunction
Hashing. concatenating(HashFunction first, HashFunction second, HashFunction... rest)
Returns a hash function which computes its hash code by concatenating the hash codes of the underlying hash functions together.Method parameters in com.google.common.hash with type arguments of type HashFunction Modifier and Type Method Description static HashFunction
Hashing. concatenating(java.lang.Iterable<HashFunction> hashFunctions)
Returns a hash function which computes its hash code by concatenating the hash codes of the underlying hash functions together.Constructors in com.google.common.hash with parameters of type HashFunction Constructor Description HashingInputStream(HashFunction hashFunction, java.io.InputStream in)
Creates an input stream that hashes using the givenHashFunction
and delegates all data read from it to the underlyingInputStream
.HashingOutputStream(HashFunction hashFunction, java.io.OutputStream out)
Creates an output stream that hashes using the givenHashFunction
, and forwards all data written to it to the underlyingOutputStream
. -
Uses of HashFunction in com.google.common.io
Methods in com.google.common.io with parameters of type HashFunction Modifier and Type Method Description HashCode
ByteSource. hash(HashFunction hashFunction)
Hashes the contents of this byte source using the given hash function.static HashCode
Files. hash(java.io.File file, HashFunction hashFunction)
Computes the hash code of thefile
usinghashFunction
.
-