| Package | Description |
|---|---|
| com.landawn.abacus.guava.hash |
| Modifier and Type | Method and Description |
|---|---|
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.put(boolean b)
Equivalent to
putByte(b ? (byte) 1 : (byte) 0). |
Hasher |
Hasher.put(byte b) |
Hasher |
Hasher.put(byte[] bytes) |
Hasher |
Hasher.put(byte[] bytes,
int off,
int len) |
Hasher |
Hasher.put(ByteBuffer bytes) |
Hasher |
Hasher.put(char c) |
Hasher |
Hasher.put(char[] chars) |
Hasher |
Hasher.put(char[] chars,
int off,
int len) |
Hasher |
Hasher.put(CharSequence charSequence)
Equivalent to processing each
char value in the CharSequence, in order. |
Hasher |
Hasher.put(CharSequence charSequence,
Charset charset)
Equivalent to
putBytes(charSequence.toString().getBytes(charset)). |
Hasher |
Hasher.put(double d)
Equivalent to
putLong(Double.doubleToRawLongBits(d)). |
Hasher |
Hasher.put(float f)
Equivalent to
putInt(Float.floatToRawIntBits(f)). |
Hasher |
Hasher.put(int i) |
Hasher |
Hasher.put(long l) |
Hasher |
Hasher.put(short s) |
<T> Hasher |
Hasher.put(T instance,
com.google.common.hash.Funnel<? super T> funnel)
A simple convenience for
funnel.funnel(object, this). |
Copyright © 2021. All rights reserved.