|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents hash functions from double 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
DoubleKeyIntChainedHashMap
or
DoubleChainedHashSet
.
DefaultDoubleHashFunction
Method Summary | |
int |
hash(double v)
Returns a hash code for a specified double value. |
Method Detail |
public int hash(double v)
v
- the value for which to return a hash code.
|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |