| com.uwyn.rife.pcj.hash.CharHashFunction
All known Subclasses: com.uwyn.rife.pcj.hash.DefaultCharHashFunction,
CharHashFunction | public interface CharHashFunction (Code) | | This interface represents hash functions from char 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.CharKeyIntChainedHashMap CharKeyIntChainedHashMap or
com.uwyn.rife.pcj.set.CharChainedHashSet CharChainedHashSet .
See Also: DefaultCharHashFunction author: Søren Bak version: 1.0 2002/29/12 since: 1.0 |
Method Summary | |
int | hash(char v) Returns a hash code for a specified char value.
Parameters: v - the value for which to return a hash code. |
hash | int hash(char v)(Code) | | Returns a hash code for a specified char value.
Parameters: v - the value for which to return a hash code. a hash code for the specified value. |
|
|