- All Implemented Interfaces:
Hash, Hash
public class JavaStringHash
extends Object
implements Hash
-
Method Summary
int
int
Generate the hash of a given String.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getInstance
public static Hash getInstance()
-
makeHash
Description copied from interface: Hash
Generate the hash of a given String.
- Specified by:
makeHash in interface Hash
- Returns:
- The hash of , which is non-negative integer.
-
makeHash
public int makeHash(byte[] b)
- Specified by:
makeHash in interface Hash