Uses of Interface
com.exonum.binding.common.hash.Hasher
Package | Description |
---|---|
com.exonum.binding.common.hash |
Hash functions and related structures.
|
-
Uses of Hasher in com.exonum.binding.common.hash
Methods in com.exonum.binding.common.hash that return Hasher Modifier and Type Method Description Hasher
HashFunction. newHasher()
Begins a new hash code computation by returning an initialized, statefulHasher
instance that is ready to receive data.Hasher
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
Hasher. putBoolean(boolean b)
Equivalent toputByte(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. putBytes(java.nio.ByteBuffer bytes)
Hasher
Hasher. putChar(char c)
Hasher
Hasher. putDouble(double d)
Equivalent toputLong(Double.doubleToRawLongBits(d))
.Hasher
Hasher. putFloat(float f)
Equivalent toputInt(Float.floatToRawIntBits(f))
.Hasher
Hasher. putInt(int i)
Hasher
Hasher. putLong(long l)
<T> Hasher
Hasher. putObject(T instance, Funnel<? super T> funnel)
A simple convenience forfunnel.funnel(object, this)
.Hasher
Hasher. putShort(short s)
Hasher
Hasher. putString(java.lang.CharSequence charSequence, java.nio.charset.Charset charset)
Equivalent toputBytes(charSequence.toString().getBytes(charset))
.Hasher
Hasher. putUnencodedChars(java.lang.CharSequence charSequence)
Equivalent to processing eachchar
value in theCharSequence
, in order.