BRUtil - Making Java a Kinder, Gentler, Place to be.

brutil
Interface HashFunction

All Known Implementing Classes:
SimpleModHashFunction

public interface HashFunction

This class provides a HashFunction interface that encapsulates a function that creates a HashCoord from a key object.

To implement a HashFunction, the programmer needs to implement this interface and define hash(Object).

This class is called by the hash(Object) method of POD.

See Also:
HashMap, POD, HashStatsListener, HashCoord

Method Summary
 HashCoord hash(java.lang.Object key)
          Returns a HashCoord corresponding to the given key object.
 

Method Detail

hash

public HashCoord hash(java.lang.Object key)
Returns a HashCoord corresponding to the given key object.
Parameters:
key - the key to process.
Returns:
the HashCoord to which this key has been mapped by this HashFunction.


BRUtil - Making Java a Kinder, Gentler, Place to be.