| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
| static HashCode | HashCode. fromBytes(byte[] bytes)Creates a  HashCodefrom a byte array. | 
| static HashCode | HashCode. fromInt(int hash)Creates a 32-bit  HashCoderepresentation of the given int value. | 
| static HashCode | HashCode. fromLong(long hash)Creates a 64-bit  HashCoderepresentation of the given long value. | 
| static HashCode | HashCode. fromString(String string)Creates a  HashCodefrom a hexadecimal (base 16) encoded string. | 
| HashCode | HashingInputStream. hash()Returns the  HashCodebased on the data read from this stream. | 
| HashCode | HashingOutputStream. hash()Returns the  HashCodebased on the data written to this stream. | 
| 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. hashInt(int input)Shortcut for  newHasher().putInt(input).hash(); returns the hash code for the givenintvalue, interpreted in little-endian byte order. | 
| HashCode | HashFunction. hashLong(long input)Shortcut for  newHasher().putLong(input).hash(); returns the hash code for the
 givenlongvalue, interpreted in little-endian byte order. | 
| <T> HashCode | HashFunction. hashObject(T instance,
                    Funnel<? super T> funnel)Shortcut for  newHasher().putObject(instance, funnel).hash(). | 
| HashCode | HashFunction. hashString(CharSequence input,
                    Charset charset)Shortcut for  newHasher().putString(input, charset).hash(). | 
| HashCode | HashFunction. hashUnencodedChars(CharSequence input)Shortcut for  newHasher().putUnencodedChars(input).hash(). | 
| Modifier and Type | Method and Description | 
|---|---|
| static int | Hashing. consistentHash(HashCode hashCode,
                            int buckets)Assigns to  hashCodea "bucket" in the range[0, buckets), in a uniform manner
 that minimizes the need for remapping asbucketsgrows. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| static HashCode | Files. hash(File file,
        HashFunction hashFunction)Computes the hash code of the  fileusinghashFunction. | 
| HashCode | ByteSource. hash(HashFunction hashFunction)Hashes the contents of this byte source using the given hash function. | 
Copyright © 2010-2015. All Rights Reserved.