asd_library.hash
Interface Hashable


public interface Hashable

Interface for Hashable objects.


Method Summary
 int hash(int tableSize)
          Compute a hash function for this object.
 

Method Detail

hash

public int hash(int tableSize)
Compute a hash function for this object.

Parameters:
tableSize - the hash table size.
Returns:
(deterministically) a number between 0 and tableSize-1, distributed equitably.