|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.speexx.util.HashUtil
public class HashUtil
Simple utilityclass for Object.hashCode() handling.
© Copyright 2006 Sascha Kohlmann under the terms of the GNU LGPL
EqualsUtil| Field Summary | |
|---|---|
static int |
SEED
The base multiplier for has computing. |
| Constructor Summary | |
|---|---|
HashUtil()
|
|
| Method Summary | |
|---|---|
static int |
hash(int seed,
boolean bool)
Computes an hash code object following the rules of Joshua Bloch. |
static int |
hash(int seed,
byte b)
Computes an hash code object following the rules of Joshua Bloch. |
static int |
hash(int seed,
char c)
Computes an hash code object following the rules of Joshua Bloch. |
static int |
hash(int seed,
double d)
Computes an hash code object following the rules of Joshua Bloch. |
static int |
hash(int seed,
float f)
Computes an hash code object following the rules of Joshua Bloch. |
static int |
hash(int seed,
int i)
Computes an hash code object following the rules of Joshua Bloch. |
static int |
hash(int seed,
long l)
Computes an hash code object following the rules of Joshua Bloch. |
static int |
hash(int seed,
Object obj)
Computes an hash code object following the rules of Joshua Bloch. |
static int |
hash(int seed,
short s)
Computes an hash code object following the rules of Joshua Bloch. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SEED
| Constructor Detail |
|---|
public HashUtil()
| Method Detail |
|---|
public static int hash(int seed,
boolean bool)
seed - the seed.bool - boolean value.
public static int hash(int seed,
byte b)
seed - the seed.b - byte value.
public static int hash(int seed,
char c)
seed - the seed.c - char value.
public static int hash(int seed,
short s)
seed - the seed.s - short value.
public static int hash(int seed,
int i)
seed - the seed.i - int value.
public static int hash(int seed,
long l)
seed - the seed.l - long value.
public static int hash(int seed,
float f)
seed - the seed.f - byte value.
public static int hash(int seed,
double d)
seed - the seed.d - double value.
public static int hash(int seed,
Object obj)
seed - the seed.obj - object value. Maybe an array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||