- 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
-
Deprecated.
Use the duplicated methods in HashCode instead. This class is scheduled
to be removed in Guava 16.0.
- 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
-
- hashString(CharSequence, Charset) - Method in interface net.tribe7.common.hash.HashFunction
-
Shortcut for newHasher().putString(input, charset).hash().
- hashUnencodedChars(CharSequence) - Method in interface net.tribe7.common.hash.HashFunction
-
Shortcut for newHasher().putUnencodedChars(input).hash().
- padToLong() - Method in class net.tribe7.common.hash.HashCode
-
If this hashcode has enough bits, returns asLong(), otherwise returns a long
value with asBytes() as the least-significant bytes and 0x00 as the remaining
most-significant bytes.
- 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.
- putAll(BloomFilter<T>) - Method in class net.tribe7.common.hash.BloomFilter
-
Combines this bloom filter with another bloom filter by performing a bitwise OR of the
underlying data.
- 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
-
- 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
-
Deprecated.
Use {PrimitiveSink#putUnencodedChars} instead. This method is scheduled for
removal in Guava 16.0.
- putString(CharSequence, Charset) - Method in interface net.tribe7.common.hash.PrimitiveSink
-
Puts a string into this sink using the given charset.
- putUnencodedChars(CharSequence) - Method in interface net.tribe7.common.hash.Hasher
-
Equivalent to processing each char value in the CharSequence, in order.
- putUnencodedChars(CharSequence) - Method in interface net.tribe7.common.hash.PrimitiveSink
-
Puts each 16-bit code unit from the CharSequence into this sink.