Uses of Interface
com.google.common.hash.Hasher
Packages that use Hasher
-
Uses of Hasher in com.google.common.hash
Methods in com.google.common.hash that return HasherModifier and TypeMethodDescriptionHashFunction.newHasher()
Begins a new hash code computation by returning an initialized, statefulHasher
instance that is ready to receive data.HashFunction.newHasher
(int expectedInputSize) Begins a new hash code computation asHashFunction.newHasher()
, but provides a hint of the expected size of the input (in bytes).Hasher.putBoolean
(boolean b) Equivalent toputByte(b ? (byte) 1 : (byte) 0)
.Hasher.putByte
(byte b) Hasher.putBytes
(byte[] bytes) Hasher.putBytes
(byte[] bytes, int off, int len) Hasher.putBytes
(ByteBuffer bytes) Hasher.putChar
(char c) Hasher.putDouble
(double d) Equivalent toputLong(Double.doubleToRawLongBits(d))
.Hasher.putFloat
(float f) Equivalent toputInt(Float.floatToRawIntBits(f))
.Hasher.putInt
(int i) Hasher.putLong
(long l) A simple convenience forfunnel.funnel(object, this)
.Hasher.putShort
(short s) Hasher.putString
(CharSequence charSequence, Charset charset) Equivalent toputBytes(charSequence.toString().getBytes(charset))
.Hasher.putUnencodedChars
(CharSequence charSequence) Equivalent to processing eachchar
value in theCharSequence
, in order.