Interface ChainHashFunction<E>

  • All Known Implementing Classes:
    SimpleChainHashFunction

    public interface ChainHashFunction<E>
    Provides an interface for a hash function that can be used by a hash table with chaining.
    • Method Detail

      • hashValue

        int hashValue​(E e)
        Reports the hash value for a given value
        Parameters:
        e - the element whose has value is to be provided
        Returns:
        the hash value for this element

        Precondition:

        1. An element e of type E has been given as input.
        Postcondition:

        1. The has value of e — an integer between zero and one less than the size of the supported has table — is returned as output.