Package cern.colt.map
Class HashFunctions
java.lang.Object
cern.colt.map.HashFunctions
Provides various hash functions.
- Version:
- 1.0, 09/24/99
- Author:
- wolfgang.hoschek@cern.ch
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMakes this class non instantiable, but still let's others inherit from it. -
Method Summary
Modifier and TypeMethodDescriptionstatic inthash(boolean value) Returns a hashcode for the specified value.static inthash(char value) Returns a hashcode for the specified value.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(short value) Returns a hashcode for the specified value.static intReturns a hashcode for the specified object.
-
Constructor Details
-
HashFunctions
protected HashFunctions()Makes this class non instantiable, but still let's others inherit from it.
-
-
Method Details
-
hash
public static int hash(char value) Returns a hashcode for the specified value.- Returns:
- a hash code value for the specified value.
-
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
Returns a hashcode for the specified object.- Returns:
- a hash code value for the specified object.
-
hash
public static int hash(short value) Returns a hashcode for the specified value.- Returns:
- a hash code value for the specified value.
-
hash
public static int hash(boolean value) Returns a hashcode for the specified value.- Returns:
- a hash code value for the specified value.
-