public class Util
extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static long |
hash(java.lang.String rep)
hash string representation of an object to an integer.
|
static java.lang.String |
hash(java.lang.String rep,
int len)
hash string representation of an object to a short word
|
public static java.lang.String hash(java.lang.String rep, int len)
rep
- the string representation of the objectlen
- the length of the result wordpublic static long hash(java.lang.String rep)
rep
- the string representation.