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.ceil(double). |
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 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(Object object)
public static int fastCeil(float v)
Math.ceil(double).Copyright © 2013–2016 Flow Powered. All rights reserved.