Package | Description |
---|---|
com.google.common.hash |
Hash functions and related structures.
|
Modifier and Type | Method and Description |
---|---|
static HashFunction |
Hashing.goodFastHash(int minimumBits)
Returns a general-purpose, non-cryptographic-strength, streaming hash function that
produces hash codes of length at least
minimumBits . |
static HashFunction |
Hashing.md5()
Returns a hash function implementing the MD5 hash algorithm by delegating to the MD5
MessageDigest . |
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 (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 (little-endian variant), using the given seed value.
|
static HashFunction |
Hashing.sha1()
Returns a hash function implementing the SHA-1 algorithm by delegating to the SHA-1
MessageDigest . |
static HashFunction |
Hashing.sha256()
Returns a hash function implementing the SHA-256 algorithm by delegating to the SHA-256
MessageDigest . |
static HashFunction |
Hashing.sha512()
Returns a hash function implementing the SHA-512 algorithm by delegating to the SHA-512
MessageDigest . |
Copyright © 2010-2012. All Rights Reserved.