ch.bind.philib.lang
public abstract class HashUtil extends Object
Objects are provided.
@Override
public int hashCode() {
int hash = HashUtil.startHash(field1);
hash = HashUtil.nextHash(hash, field2);
...
hash = HashUtil.nextHash(hash, fieldN);
return hash;
}
Note: fields may be null.| Modifier | Constructor and Description |
|---|---|
protected |
HashUtil() |
| Modifier and Type | Method and Description |
|---|---|
static long |
fromDouble(double value) |
static int |
fromFloat(float value) |
static int |
nextHash(int hash,
boolean value) |
static int |
nextHash(int hash,
byte value) |
static int |
nextHash(int hash,
char value) |
static int |
nextHash(int hash,
double value) |
static int |
nextHash(int hash,
float value) |
static int |
nextHash(int hash,
int value) |
static int |
nextHash(int hash,
long value) |
static int |
nextHash(int hash,
Object obj) |
static int |
nextHash(int hash,
short value) |
static int |
startHash(boolean value) |
static int |
startHash(byte value) |
static int |
startHash(char value) |
static int |
startHash(double value) |
static int |
startHash(float value) |
static int |
startHash(int value) |
static int |
startHash(long value) |
static int |
startHash(Object obj) |
static int |
startHash(short value) |
public static int startHash(boolean value)
public static int startHash(byte value)
public static int startHash(char value)
public static int startHash(short value)
public static int startHash(int value)
public static int startHash(long value)
public static int startHash(float value)
public static int startHash(double value)
public static int startHash(Object obj)
public static int nextHash(int hash,
boolean value)
public static int nextHash(int hash,
byte value)
public static int nextHash(int hash,
char value)
public static int nextHash(int hash,
short value)
public static int nextHash(int hash,
int value)
public static int nextHash(int hash,
long value)
public static int nextHash(int hash,
float value)
public static int nextHash(int hash,
double value)
public static int nextHash(int hash,
Object obj)
public static int fromFloat(float value)
public static long fromDouble(double value)
Copyright © 2014. All Rights Reserved.