|
PCJ API Version 1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbak.pcj.hash.DefaultDoubleHashFunction
This class provides a default hash function for double values. It has been derived from the Java library and is known to work well in the general case.
Double.hashCode()| Field Summary | |
static DoubleHashFunction |
INSTANCE
Default instance of this hash function. |
| Constructor Summary | |
protected |
DefaultDoubleHashFunction()
Default constructor to be invoked by sub-classes. |
| Method Summary | |
int |
hash(double v)
Returns a hash code for a specified double value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final DoubleHashFunction INSTANCE
| Constructor Detail |
protected DefaultDoubleHashFunction()
| Method Detail |
public int hash(double v)
DoubleHashFunction
hash in interface DoubleHashFunctionv - 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 | |||||||||