org.brains2b.data
Class HashCodeHelper
java.lang.Object
org.brains2b.data.HashCodeHelper
public class HashCodeHelper
- extends java.lang.Object
Best practice implementation for generating a hash code with a minimal amount of clashes,
but a reasonable execution time
- Version:
- 0.10 [08-06-2006]
- Author:
- dennis@brains2b.nl
Method Summary |
static int |
hash(int h,
boolean b)
|
static int |
hash(int h,
double d)
|
static int |
hash(int h,
float f)
|
static int |
hash(int h,
int i)
|
static int |
hash(int h,
long l)
|
static int |
hash(int h,
java.lang.Object o)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INITIAL
public static final int INITIAL
- See Also:
- Constant Field Values
HashCodeHelper
public HashCodeHelper()
hash
public static final int hash(int h,
int i)
hash
public static final int hash(int h,
boolean b)
hash
public static final int hash(int h,
long l)
hash
public static final int hash(int h,
double d)
hash
public static final int hash(int h,
float f)
hash
public static final int hash(int h,
java.lang.Object o)