|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Hasher | |
|---|---|
| com.google.common.hash | Hash functions and related structures. |
| Uses of Hasher in com.google.common.hash |
|---|
| Methods in com.google.common.hash that return Hasher | ||
|---|---|---|
Hasher |
HashFunction.newHasher()
Begins a new hash code computation by returning an initialized, stateful Hasher instance that is ready to receive data. |
|
Hasher |
HashFunction.newHasher(int expectedInputSize)
Begins a new hash code computation as HashFunction.newHasher(), but provides a hint of the
expected size of the input (in bytes). |
|
Hasher |
Hasher.putBoolean(boolean b)
Equivalent to putByte(b ? (byte) 1 : (byte) 0). |
|
Hasher |
Hasher.putByte(byte b)
|
|
Hasher |
Hasher.putBytes(byte[] bytes)
|
|
Hasher |
Hasher.putBytes(byte[] bytes,
int off,
int len)
|
|
Hasher |
Hasher.putChar(char c)
|
|
Hasher |
Hasher.putDouble(double d)
Equivalent to putLong(Double.doubleToRawLongBits(d)). |
|
Hasher |
Hasher.putFloat(float f)
Equivalent to putInt(Float.floatToRawIntBits(f)). |
|
Hasher |
Hasher.putInt(int i)
|
|
Hasher |
Hasher.putLong(long l)
|
|
|
Hasher.putObject(T instance,
Funnel<? super T> funnel)
A simple convenience for funnel.funnel(object, this). |
|
Hasher |
Hasher.putShort(short s)
|
|
Hasher |
Hasher.putString(CharSequence charSequence)
Equivalent to putBytes(charSequence.toString().getBytes(Charsets.UTF_16LE). |
|
Hasher |
Hasher.putString(CharSequence charSequence,
Charset charset)
Equivalent to putBytes(charSequence.toString().getBytes(charset). |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||