public class Hash64
extends Object
Modifier and Type | Field and Description |
---|---|
private static long |
MAGIC_PRIME |
Constructor and Description |
---|
Hash64() |
Modifier and Type | Method and Description |
---|---|
static long |
hash(String s)
Calculate a non-negative 64-bit hash code for a string
|
static long |
hash(String s1,
String s2)
Calculate a non-negative 64-bit hash code for two strings
|
static long |
hash(String s1,
String s2,
String s3)
Calculate a non-negative 64-bit hash code for three strings
|
private static final long MAGIC_PRIME
public static long hash(String s)
public static long hash(String s1, String s2)
public static long hash(String s1, String s2, String s3)