|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use HashCode | |
---|---|
com.google.common.hash | Hash functions and related structures. |
Uses of HashCode in com.google.common.hash |
---|
Methods in com.google.common.hash that return HashCode | |
---|---|
static HashCode |
Hashing.combineOrdered(Iterable<HashCode> hashCodes)
Returns a hash code, having the same bit length as each of the input hash codes, that combines the information of these hash codes in an ordered fashion. |
static HashCode |
Hashing.combineUnordered(Iterable<HashCode> hashCodes)
Returns a hash code, having the same bit length as each of the input hash codes, that combines the information of these hash codes in an unordered fashion. |
HashCode |
Hasher.hash()
Computes a hash code based on the data that have been provided to this hasher. |
HashCode |
HashFunction.hashBytes(byte[] input)
Shortcut for newHasher().putBytes(input).hash() . |
HashCode |
HashFunction.hashBytes(byte[] input,
int off,
int len)
Shortcut for newHasher().putBytes(input, off, len).hash() . |
HashCode |
HashFunction.hashLong(long input)
Shortcut for newHasher().putLong(input).hash() ; returns the hash code for the
given long value, interpreted in little-endian byte order. |
HashCode |
HashFunction.hashString(CharSequence input)
Shortcut for newHasher().putString(input).hash() . |
HashCode |
HashFunction.hashString(CharSequence input,
Charset charset)
Shortcut for newHasher().putString(input, charset).hash() . |
Methods in com.google.common.hash with parameters of type HashCode | |
---|---|
static int |
Hashing.consistentHash(HashCode hashCode,
int buckets)
Assigns to hashCode a "bucket" in the range [0, buckets) , in a uniform
manner that minimizes the need for remapping as buckets grows. |
static long |
Hashing.padToLong(HashCode hashCode)
If hashCode has enough bits, returns hashCode.asLong() , otherwise
returns a long value with hashCode.asInt() as the least-significant
four bytes and 0x00 as each of the most-significant four bytes. |
Method parameters in com.google.common.hash with type arguments of type HashCode | |
---|---|
static HashCode |
Hashing.combineOrdered(Iterable<HashCode> hashCodes)
Returns a hash code, having the same bit length as each of the input hash codes, that combines the information of these hash codes in an ordered fashion. |
static HashCode |
Hashing.combineUnordered(Iterable<HashCode> hashCodes)
Returns a hash code, having the same bit length as each of the input hash codes, that combines the information of these hash codes in an unordered fashion. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |