zombie.util.hash
Interface IntHashFunction

All Known Implementing Classes:
DefaultIntHashFunction

public interface IntHashFunction

This interface represents hash functions from int values to int values. The int value result is chosen to achieve consistence with the common hashCode() method. The interface is provided to alter the hash functions used by hashing data structures, like IntKeyIntChainedHashMap or IntChainedHashSet.

Since:
1.0
Version:
1.0 2002/29/12
Author:
Søren Bak
See Also:
DefaultIntHashFunction

Method Summary
 int hash(int v)
          Returns a hash code for a specified int value.
 

Method Detail

hash

int hash(int v)
Returns a hash code for a specified int value.

Parameters:
v - the value for which to return a hash code.
Returns:
a hash code for the specified value.