public class StringHash
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static long |
calc(byte[] arg)
Calculates hash value of byte array buzhash algorithm.
|
static long |
calc(java.lang.String arg)
Calculates hash value of string using buzhash algorithm.
|
static int |
murmur(java.lang.String data,
int seed) |
public static long calc(java.lang.String arg)
arg
- string to calculate hash value uponpublic static long calc(byte[] arg)
arg
- byte arrayg to calculate hash value uponpublic static int murmur(java.lang.String data, int seed)