public interface Hasher extends Factory<Object,Hasher>, Named
| 限定符和类型 | 方法和说明 |
|---|---|
Hasher |
get(Object initParams) |
String |
getName() |
long |
hash(byte[] bytes)
Calculate a hash using all bytes from the input argument, and
a seed of 0.
|
long |
hash(byte[] bytes,
int length,
long seed)
一次性计算 hash
Calculate a hash using bytes from 0 to
length, and
the provided seed value |
long |
hash(byte[] bytes,
long seed)
一次性计算 hash
Calculate a hash using all bytes from the input argument,
and a provided seed value.
|
long hash(byte[] bytes)
bytes - input byteslong hash(byte[] bytes,
long seed)
Calculate a hash using all bytes from the input argument, and a provided seed value.
bytes - input bytesseed - seed valuelong hash(byte[] bytes,
int length,
long seed)
Calculate a hash using bytes from 0 to length, and
the provided seed value
bytes - input byteslength - length of the valid bytes to considerseed - seed valueCopyright © 2022. All rights reserved.