    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface Supporting.Hashable

public interface Hashable

Protocol for Hashable objects.

##

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

##

hash

    public abstract 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.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index