public interface Hasher
| Modifier and Type | Method and Description |
|---|---|
int |
hash32(byte[] bytes)
Returns the 32-bit hash of the given bytes.
|
default int |
hash32(String value)
Returns a 32-bit hash of the given string.
|
long |
hash64(byte[] bytes)
Returns the 64-bit hash of the given bytes.
|
default long |
hash64(String value)
Returns a 64-bit hash of the given string.
|
default int hash32(String value)
value - The string to hash.int hash32(byte[] bytes)
bytes - The bytes to hash.default long hash64(String value)
value - The string to hash.long hash64(byte[] bytes)
bytes - The bytes to hash.Copyright © 2013–2016. All rights reserved.