gnu.trove.impl
Class HashFunctions
- java.lang.Object
-
- gnu.trove.impl.HashFunctions
-
public final class HashFunctions extends java.lang.ObjectProvides various hash functions.
-
-
Constructor Summary
Constructors Constructor and Description HashFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static intfastCeil(float v)In profiling, it has been found to be faster to have our own local implementation of "ceil" rather than to call toMath.ceil(double).static inthash(double value)Returns a hashcode for the specified value.static inthash(float value)Returns a hashcode for the specified value.static inthash(int value)Returns a hashcode for the specified value.static inthash(long value)Returns a hashcode for the specified value.static inthash(java.lang.Object object)Returns a hashcode for the specified object.
-
-
-
Method Detail
-
hash
public static int hash(double value)
Returns a hashcode for the specified value.- Returns:
- a hash code value for the specified value.
-
hash
public static int hash(float value)
Returns a hashcode for the specified value.- Returns:
- a hash code value for the specified value.
-
hash
public static int hash(int value)
Returns a hashcode for the specified value.- Returns:
- a hash code value for the specified value.
-
hash
public static int hash(long value)
Returns a hashcode for the specified value.- Returns:
- a hash code value for the specified value.
-
hash
public static int hash(java.lang.Object object)
Returns a hashcode for the specified object.- Returns:
- a hash code value for the specified object.
-
fastCeil
public 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 toMath.ceil(double).
-
-
DataMelt 3.0 © DataMelt by jWork.ORG