|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectHash64
public class Hash64
Utility class that calculates good 64-bit hash codes for strings.
| Field Summary | |
|---|---|
private static long |
MAGIC_PRIME
|
| Constructor Summary | |
|---|---|
Hash64()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long MAGIC_PRIME
| Constructor Detail |
|---|
public Hash64()
| Method Detail |
|---|
public static long hash(String s)
public static long hash(String s1,
String s2)
public static long hash(String s1,
String s2,
String s3)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||