|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.trove.impl.HashFunctions
public final class HashFunctions
Provides various hash functions.
Constructor Summary | |
---|---|
HashFunctions()
|
Method Summary | |
---|---|
static int |
fastCeil(float v)
In profiling, it has been found to be faster to have our own local implementation of "ceil" rather than to call to Math.ceil(double) . |
static int |
hash(double value)
Returns a hashcode for the specified value. |
static int |
hash(float value)
Returns a hashcode for the specified value. |
static int |
hash(int value)
Returns a hashcode for the specified value. |
static int |
hash(long value)
Returns a hashcode for the specified value. |
static int |
hash(java.lang.Object object)
Returns a hashcode for the specified object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HashFunctions()
Method Detail |
---|
public static int hash(double value)
public static int hash(float value)
public static int hash(int value)
public static int hash(long value)
public static int hash(java.lang.Object object)
public static int fastCeil(float v)
Math.ceil(double)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |