Package com.uwyn.jhighlight.pcj.hash
Interface CharHashFunction
-
- All Known Implementing Classes:
DefaultCharHashFunction
public interface CharHashFunction
This interface represents hash functions from char values to int values. The int value result is chosen to achieve consistence with the commonhashCode()
method. The interface is provided to alter the hash functions used by hashing data structures, likeCharKeyIntChainedHashMap
orCharChainedHashSet
.- Since:
- 1.0
- Version:
- 1.0 2002/29/12
- Author:
- Søren Bak
- See Also:
DefaultCharHashFunction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
hash(char v)
Returns a hash code for a specified char value.
-