| com.uwyn.rife.pcj.hash.IntHashFunction
All known Subclasses: com.uwyn.rife.pcj.hash.DefaultIntHashFunction,
IntHashFunction | public interface IntHashFunction (Code) | | This interface represents hash functions from int values
to int values. The int value result is chosen to achieve
consistence with the common
Object.hashCode hashCode() method. The interface is provided to alter the hash functions used
by hashing data structures, like
com.uwyn.rife.pcj.map.IntKeyIntChainedHashMap IntKeyIntChainedHashMap or
com.uwyn.rife.pcj.set.IntChainedHashSet IntChainedHashSet .
See Also: DefaultIntHashFunction author: Søren Bak version: 1.0 2002/29/12 since: 1.0 |
Method Summary | |
int | hash(int v) Returns a hash code for a specified int value.
Parameters: v - the value for which to return a hash code. |
hash | int hash(int v)(Code) | | Returns a hash code for a specified int value.
Parameters: v - the value for which to return a hash code. a hash code for the specified value. |
|
|