Example usage for Java com.google.common.hash Hasher fields, constructors, methods, implement or subclass
The text is from its open source code.
HashCode | hash() Computes a hash code based on the data that have been provided to this hasher. |
int | hashCode() |
Hasher | putBoolean(boolean b) Equivalent to putByte(b ? |
Hasher | putByte(byte b) |
Hasher | putBytes(byte[] bytes) |
Hasher | putBytes(byte[] bytes, int off, int len) |
Hasher | putChar(char c) |
Hasher | putDouble(double d) Equivalent to putLong(Double.doubleToRawLongBits(d)) . |
Hasher | putFloat(float f) Equivalent to putInt(Float.floatToRawIntBits(f)) . |
Hasher | putInt(int i) |
Hasher | putLong(long l) |
Hasher | putObject(T instance, Funnel super T> funnel) A simple convenience for funnel.funnel(object, this) . |
Hasher | putShort(short s) |
Hasher | putString(CharSequence charSequence, Charset charset) Equivalent to putBytes(charSequence.toString().getBytes(charset)) . |
Hasher | putUnencodedChars(CharSequence charSequence) Equivalent to processing each char value in the CharSequence , in order. |