DataStructures
Interface Hashable

All Known Implementing Classes:
MyInteger

public interface Hashable

Protocol 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.