A B C E F G H I L M N P S T W 

A

adler32() - Static method in class net.tribe7.common.hash.Hashing
Returns a hash function implementing the Adler-32 checksum algorithm (32 hash bits) by delegating to the Adler32 Checksum.
apply(T) - Method in class net.tribe7.common.hash.BloomFilter
Equivalent to BloomFilter.mightContain(T); provided only to satisfy the Predicate interface.
asBytes() - Method in class net.tribe7.common.hash.HashCode
Returns the value of this hash code as a byte array.
asInt() - Method in class net.tribe7.common.hash.HashCode
Returns the first four bytes of this hashcode's bytes, converted to an int value in little-endian order.
asLong() - Method in class net.tribe7.common.hash.HashCode
Returns the first eight bytes of this hashcode's bytes, converted to a long value in little-endian order.
asOutputStream(PrimitiveSink) - Static method in class net.tribe7.common.hash.Funnels
Wraps a PrimitiveSink as an OutputStream, so it is easy to funnel an object to a PrimitiveSink if there is already a way to write the contents of the object to an OutputStream.

B

bits() - Method in class net.tribe7.common.hash.HashCode
Returns the number of bits in this hash code; a positive multiple of 8.
bits() - Method in interface net.tribe7.common.hash.HashFunction
Returns the number of bits (a multiple of 32) that each hash code produced by this hash function has.
BloomFilter<T> - Class in net.tribe7.common.hash
A Bloom filter for instances of T.
byteArrayFunnel() - Static method in class net.tribe7.common.hash.Funnels
Returns a funnel that extracts the bytes from a byte array.

C

combineOrdered(Iterable<HashCode>) - Static method in class net.tribe7.common.hash.Hashing
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.
combineUnordered(Iterable<HashCode>) - Static method in class net.tribe7.common.hash.Hashing
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.
consistentHash(HashCode, int) - Static method in class net.tribe7.common.hash.Hashing
Assigns to hashCode a "bucket" in the range [0, buckets), in a uniform manner that minimizes the need for remapping as buckets grows.
consistentHash(long, int) - Static method in class net.tribe7.common.hash.Hashing
Assigns to input a "bucket" in the range [0, buckets), in a uniform manner that minimizes the need for remapping as buckets grows.
copy() - Method in class net.tribe7.common.hash.BloomFilter
Creates a new BloomFilter that's a copy of this instance.
crc32() - Static method in class net.tribe7.common.hash.Hashing
Returns a hash function implementing the CRC-32 checksum algorithm (32 hash bits) by delegating to the CRC32 Checksum.
create(Funnel<T>, int, double) - Static method in class net.tribe7.common.hash.BloomFilter
Creates a Builder of a BloomFilter, with the expected number of insertions and expected false positive probability.
create(Funnel<T>, int) - Static method in class net.tribe7.common.hash.BloomFilter
Creates a Builder of a BloomFilter, with the expected number of insertions, and a default expected false positive probability of 3%.

E

equals(Object) - Method in class net.tribe7.common.hash.BloomFilter
 
equals(Object) - Method in class net.tribe7.common.hash.HashCode
 
expectedFalsePositiveProbability() - Method in class net.tribe7.common.hash.BloomFilter
Deprecated.
expectedFpp() - Method in class net.tribe7.common.hash.BloomFilter
Returns the probability that BloomFilter.mightContain(Object) will erroneously return true for an object that has not actually been put in the BloomFilter.

F

fromBytes(byte[]) - Static method in class net.tribe7.common.hash.HashCodes
Creates a HashCode from a byte array.
fromInt(int) - Static method in class net.tribe7.common.hash.HashCodes
Creates a 32-bit HashCode, of which the bytes will form the passed int, interpreted in little endian order.
fromLong(long) - Static method in class net.tribe7.common.hash.HashCodes
Creates a 64-bit HashCode, of which the bytes will form the passed long, interpreted in little endian order.
Funnel<T> - Interface in net.tribe7.common.hash
An object which can send data from an object of type T into a PrimitiveSink.
funnel(T, PrimitiveSink) - Method in interface net.tribe7.common.hash.Funnel
Sends a stream of data from the from object into the sink into.
Funnels - Class in net.tribe7.common.hash
Funnels for common types.

G

goodFastHash(int) - Static method in class net.tribe7.common.hash.Hashing
Returns a general-purpose, non-cryptographic-strength, streaming hash function that produces hash codes of length at least minimumBits.

H

hash() - Method in interface net.tribe7.common.hash.Hasher
Computes a hash code based on the data that have been provided to this hasher.
hashBytes(byte[]) - Method in interface net.tribe7.common.hash.HashFunction
Shortcut for newHasher().putBytes(input).hash().
hashBytes(byte[], int, int) - Method in interface net.tribe7.common.hash.HashFunction
Shortcut for newHasher().putBytes(input, off, len).hash().
hashCode() - Method in class net.tribe7.common.hash.BloomFilter
 
HashCode - Class in net.tribe7.common.hash
An immutable hash code of arbitrary bit length.
hashCode() - Method in class net.tribe7.common.hash.HashCode
Returns a "Java hash code" for this HashCode instance; this is well-defined (so, for example, you can safely put HashCode instances into a HashSet) but is otherwise probably not what you want to use.
HashCodes - Class in net.tribe7.common.hash
Static factories for creating HashCode instances; most users should never have to use this.
Hasher - Interface in net.tribe7.common.hash
A PrimitiveSink that can compute a hash code after reading the input.
HashFunction - Interface in net.tribe7.common.hash
A hash function is a collision-averse pure function that maps an arbitrary block of data to a number called a hash code.
Hashing - Class in net.tribe7.common.hash
Static methods to obtain HashFunction instances, and other static hashing-related utilities.
hashInt(int) - Method in interface net.tribe7.common.hash.HashFunction
Shortcut for newHasher().putInt(input).hash(); returns the hash code for the given int value, interpreted in little-endian byte order.
hashLong(long) - Method in interface net.tribe7.common.hash.HashFunction
Shortcut for newHasher().putLong(input).hash(); returns the hash code for the given long value, interpreted in little-endian byte order.
hashObject(T, Funnel<? super T>) - Method in interface net.tribe7.common.hash.HashFunction
Shortcut for newHasher().putObject(instance, funnel).hash().
hashString(CharSequence) - Method in interface net.tribe7.common.hash.HashFunction
Shortcut for newHasher().putString(input).hash().
hashString(CharSequence, Charset) - Method in interface net.tribe7.common.hash.HashFunction
Shortcut for newHasher().putString(input, charset).hash().

I

integerFunnel() - Static method in class net.tribe7.common.hash.Funnels
Returns a funnel for integers.

L

longFunnel() - Static method in class net.tribe7.common.hash.Funnels
Returns a funnel for longs.

M

md5() - Static method in class net.tribe7.common.hash.Hashing
Returns a hash function implementing the MD5 hash algorithm (128 hash bits) by delegating to the MD5 MessageDigest.
mightContain(T) - Method in class net.tribe7.common.hash.BloomFilter
Returns true if the element might have been put in this Bloom filter, false if this is definitely not the case.
murmur3_128(int) - Static method in class net.tribe7.common.hash.Hashing
Returns a hash function implementing the 128-bit murmur3 algorithm, x64 variant (little-endian variant), using the given seed value.
murmur3_128() - Static method in class net.tribe7.common.hash.Hashing
Returns a hash function implementing the 128-bit murmur3 algorithm, x64 variant (little-endian variant), using a seed value of zero.
murmur3_32(int) - Static method in class net.tribe7.common.hash.Hashing
Returns a hash function implementing the 32-bit murmur3 algorithm, x86 variant (little-endian variant), using the given seed value.
murmur3_32() - Static method in class net.tribe7.common.hash.Hashing
Returns a hash function implementing the 32-bit murmur3 algorithm, x86 variant (little-endian variant), using a seed value of zero.

N

net.tribe7.common.hash - package net.tribe7.common.hash
Hash functions and related structures.
newHasher() - Method in interface net.tribe7.common.hash.HashFunction
Begins a new hash code computation by returning an initialized, stateful Hasher instance that is ready to receive data.
newHasher(int) - Method in interface net.tribe7.common.hash.HashFunction
Begins a new hash code computation as HashFunction.newHasher(), but provides a hint of the expected size of the input (in bytes).

P

padToLong() - Method in class net.tribe7.common.hash.HashCode
If this hashcode has enough bits, returns asLong(), otherwise returns a long value with asInt() as the least-significant four bytes and 0x00 as each of the most-significant four bytes.
padToLong(HashCode) - Static method in class net.tribe7.common.hash.Hashing
Deprecated.
Use HashCode.padToLong() instead. This method is scheduled to be removed in Guava 15.0.
PrimitiveSink - Interface in net.tribe7.common.hash
An object which can receive a stream of primitive values.
put(T) - Method in class net.tribe7.common.hash.BloomFilter
Puts an element into this BloomFilter.
putBoolean(boolean) - Method in interface net.tribe7.common.hash.Hasher
Equivalent to putByte(b ? (byte) 1 : (byte) 0).
putBoolean(boolean) - Method in interface net.tribe7.common.hash.PrimitiveSink
Puts a boolean into this sink.
putByte(byte) - Method in interface net.tribe7.common.hash.Hasher
 
putByte(byte) - Method in interface net.tribe7.common.hash.PrimitiveSink
Puts a byte into this sink.
putBytes(byte[]) - Method in interface net.tribe7.common.hash.Hasher
 
putBytes(byte[], int, int) - Method in interface net.tribe7.common.hash.Hasher
 
putBytes(byte[]) - Method in interface net.tribe7.common.hash.PrimitiveSink
Puts an array of bytes into this sink.
putBytes(byte[], int, int) - Method in interface net.tribe7.common.hash.PrimitiveSink
Puts a chunk of an array of bytes into this sink.
putChar(char) - Method in interface net.tribe7.common.hash.Hasher
 
putChar(char) - Method in interface net.tribe7.common.hash.PrimitiveSink
Puts a character into this sink.
putDouble(double) - Method in interface net.tribe7.common.hash.Hasher
Equivalent to putLong(Double.doubleToRawLongBits(d)).
putDouble(double) - Method in interface net.tribe7.common.hash.PrimitiveSink
Puts a double into this sink.
putFloat(float) - Method in interface net.tribe7.common.hash.Hasher
Equivalent to putInt(Float.floatToRawIntBits(f)).
putFloat(float) - Method in interface net.tribe7.common.hash.PrimitiveSink
Puts a float into this sink.
putInt(int) - Method in interface net.tribe7.common.hash.Hasher
 
putInt(int) - Method in interface net.tribe7.common.hash.PrimitiveSink
Puts an int into this sink.
putLong(long) - Method in interface net.tribe7.common.hash.Hasher
 
putLong(long) - Method in interface net.tribe7.common.hash.PrimitiveSink
Puts a long into this sink.
putObject(T, Funnel<? super T>) - Method in interface net.tribe7.common.hash.Hasher
A simple convenience for funnel.funnel(object, this).
putShort(short) - Method in interface net.tribe7.common.hash.Hasher
 
putShort(short) - Method in interface net.tribe7.common.hash.PrimitiveSink
Puts a short into this sink.
putString(CharSequence) - Method in interface net.tribe7.common.hash.Hasher
Equivalent to processing each char value in the CharSequence, in order.
putString(CharSequence, Charset) - Method in interface net.tribe7.common.hash.Hasher
Equivalent to putBytes(charSequence.toString().getBytes(charset)).
putString(CharSequence) - Method in interface net.tribe7.common.hash.PrimitiveSink
Puts a string into this sink.
putString(CharSequence, Charset) - Method in interface net.tribe7.common.hash.PrimitiveSink
Puts a string into this sink using the given charset.

S

sha1() - Static method in class net.tribe7.common.hash.Hashing
Returns a hash function implementing the SHA-1 algorithm (160 hash bits) by delegating to the SHA-1 MessageDigest.
sha256() - Static method in class net.tribe7.common.hash.Hashing
Returns a hash function implementing the SHA-256 algorithm (256 hash bits) by delegating to the SHA-256 MessageDigest.
sha512() - Static method in class net.tribe7.common.hash.Hashing
Returns a hash function implementing the SHA-512 algorithm (512 hash bits) by delegating to the SHA-512 MessageDigest.
stringFunnel() - Static method in class net.tribe7.common.hash.Funnels
Returns a funnel that extracts the characters from a CharSequence.

T

toString() - Method in class net.tribe7.common.hash.HashCode
Returns a string containing each byte of HashCode.asBytes(), in order, as a two-digit unsigned hexadecimal number in lower case.

W

writeBytesTo(byte[], int, int) - Method in class net.tribe7.common.hash.HashCode
Copies bytes from this hash code into dest.
A B C E F G H I L M N P S T W