gnu.trove

Class HashFunctions


public final class HashFunctions
extends java.lang.Object

Provides various hash functions.
Version:
1.0, 09/24/99
Author:
wolfgang.hoschek@cern.ch

Method Summary

static int
hash(Object object)
Returns a hashcode for the specified object.
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.

Method Details

hash

public static int hash(Object object)
Returns a hashcode for the specified object.
Returns:
a hash code value for the specified object.

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.

GNU Trove is copyright B) 2001-2008 Eric D. Friedman. All Rights Reserved.