| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public HashCode | hashBytes(byte[] input)
Implements com. newHasher().putBytes(input).hash().
|
| public HashCode | hashBytes(byte[] input, int off, int len)
Implements com. newHasher().putBytes(input, off, len).hash().
|
| public HashCode | hashBytes(ByteBuffer input)
Implements com. newHasher().putBytes(input).hash().
|
| public HashCode | hashInt(int input)
Implements com. newHasher().putInt(input).hash(); returns the hash code for the given
int value, interpreted in little-endian byte order.
|
| public HashCode | hashLong(long input)
Implements com. newHasher().putLong(input).hash(); returns the hash code for the given
long value, interpreted in little-endian byte order.
|
| public <T extends @Nullable Object> HashCode | hashObject(T instance, Funnel<? super T> funnel)
Implements com. newHasher().putObject(instance, funnel).hash().
|
| public HashCode | hashString(CharSequence input, Charset charset)
Implements com. newHasher().putString(input, charset).hash().
|
| public HashCode | hashUnencodedChars(CharSequence input)
Implements com. newHasher().putUnencodedChars(input).hash().
|
| public Hasher | newHasher(int expectedInputSize)
Implements com. newHasher(), but provides a hint of the expected
size of the input (in bytes).
|
| AbstractHashFunction | back to summary |
|---|---|
| pack-priv AbstractHashFunction() | |
| hashBytes | back to summary |
|---|---|
| public HashCode hashBytes(byte[] input) Implements com. Doc from com. Shortcut for
| |
| hashBytes | back to summary |
|---|---|
| public HashCode hashBytes(byte[] input, int off, int len) Implements com. Doc from com. Shortcut for
| |
| hashBytes | back to summary |
|---|---|
| public HashCode hashBytes(ByteBuffer input) Implements com. Doc from com. Shortcut for
| |
| hashInt | back to summary |
|---|---|
| public HashCode hashInt(int input) Implements com. Doc from com. Shortcut for
| |
| hashLong | back to summary |
|---|---|
| public HashCode hashLong(long input) Implements com. Doc from com. Shortcut for
| |
| hashObject | back to summary |
|---|---|
| public <T extends @Nullable Object> HashCode hashObject(T instance, Funnel<? super T> funnel) Implements com. Doc from com. Shortcut for
| |
| hashString | back to summary |
|---|---|
| public HashCode hashString(CharSequence input, Charset charset) Implements com. Doc from com. Shortcut for Warning This method, which reencodes the input before hashing it, is useful only for
cross-language compatibility. For other use cases, prefer
| |
| hashUnencodedChars | back to summary |
|---|---|
| public HashCode hashUnencodedChars(CharSequence input) Implements com. Doc from com. Shortcut for Warning This method will produce different output than most other languages do when
running the same hash function on the equivalent input. For cross-language compatibility, use
| |
| newHasher | back to summary |
|---|---|
| public Hasher newHasher(int expectedInputSize) Implements com. Doc from com. Begins a new hash code computation as
| |