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 Type
    Method
    Description
    int
    Hashes a key, i.e. turns it into an integer for use in a HashTable.
  • Method Details

    • hash

      int hash(CharSequence key)
      Hashes a key, i.e. turns it into an integer for use in a HashTable.
      Parameters:
      key - A key to hash.
      Returns:
      A hash.