Algorithm
Development Kit 1.0

algs.model.search
Interface IHash<V>

Type Parameters:
V - type of object being hashed.
All Known Implementing Classes:
SimpleHash, StandardHash

public interface IHash<V>

Default interface for producing the slot within the hashtable for an element. Note that we can't use the default hashCode() method since that generates only the raw key() information.

Since:
1.0
Version:
1.0, 6/15/08
Author:
George Heineman, Gary Pollice

Method Summary
 int hash(V v)
          Compute the proper index into a hashtable.
 

Method Detail

hash

int hash(V v)
Compute the proper index into a hashtable.


Algorithm Development Kit 1.0

This code supports the Algorithms in a Nutshell book, published by O'Reilly Media, Inc. in November 2008. Please visit the book web page to learn of any changes to the code repository or to record a potential defect.