Package hash.studio
Class HashUtils
java.lang.Object
hash.studio.HashUtils
- Author:
- __STUDENT_NAME__, Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HashUtils
public HashUtils()
-
-
Method Details
-
toIndex
- Parameters:
key- the key to hashmaxExclusive- the exclusive upper bound- Returns:
- floor modulus of key's hashCode and maxExclusive if not null, otherwise 0
-