Package gnu.trove.impl
Class HashFunctions
java.lang.Object
gnu.trove.impl.HashFunctions
Provides various hash functions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
Returns a hashcode for the specified object.
-
Constructor Details
-
HashFunctions
public HashFunctions()
-
-
Method Details
-
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.
-