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 HasherHashFunction. newHasher()Begins a new hash code computation by returning an initialized, statefulHasherinstance that is ready to receive data.HasherHashFunction. newHasher(int expectedInputSize)Begins a new hash code computation asHashFunction.newHasher(), but provides a hint of the expected size of the input (in bytes).HasherHasher. putBoolean(boolean b)Equivalent toputByte(b ? (byte) 1 : (byte) 0).HasherHasher. putByte(byte b)HasherHasher. putBytes(byte[] bytes)HasherHasher. putBytes(byte[] bytes, int off, int len)HasherHasher. putBytes(ByteBuffer bytes)HasherHasher. putChar(char c)HasherHasher. putDouble(double d)Equivalent toputLong(Double.doubleToRawLongBits(d)).HasherHasher. putFloat(float f)Equivalent toputInt(Float.floatToRawIntBits(f)).HasherHasher. putInt(int i)HasherHasher. putLong(long l)<T> HasherHasher. putObject(T instance, Funnel<? super T> funnel)A simple convenience forfunnel.funnel(object, this).HasherHasher. putShort(short s)HasherHasher. putString(CharSequence charSequence, Charset charset)Equivalent toputBytes(charSequence.toString().getBytes(charset)).HasherHasher. putUnencodedChars(CharSequence charSequence)Equivalent to processing eachcharvalue in theCharSequence, in order.