Interface HashFunction
-
- All Known Subinterfaces:
RangeCompatibleHashFunction
- All Known Implementing Classes:
Murmur3HashFunction,SimpleHashFunction
public interface HashFunctionA hash function, for use in hash tables.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description inthash(CharSequence key)Hashes akey, i.e.
-
-
-
Method Detail
-
hash
int hash(CharSequence key)
Hashes akey, i.e. turns it into an integer for use in aHashTable.- Parameters:
key- A key to hash.- Returns:
- A hash.
-
-