public final class HashFunctions extends Object
| Constructor and Description |
|---|
HashFunctions()
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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(Object
Returns a hashcode for the specified object.
|
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(Objectobject)
public static int fastCeil(float v)
Math.ceil(double) .