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