public class HashCodeUtils extends Object
hashCode
method.Constructor and Description |
---|
HashCodeUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
hash(boolean item)
Hash a boolean value.
|
static int |
hash(char item)
Hash a char value.
|
static int |
hash(double item)
Hash a double value.
|
static int |
hash(float item)
Hash a float value.
|
static int |
hash(int item)
Hash an int value.
|
static int |
hash(int hash,
boolean item)
Add a boolean value to a given hash.
|
static int |
hash(int hash,
char item)
Add a char value to a given hash.
|
static int |
hash(int hash,
double item)
Add a double value to a given hash.
|
static int |
hash(int hash,
float item)
Add a float value to a given hash.
|
static int |
hash(int hash,
int item)
Add an int value to a given hash.
|
static int |
hash(int hash,
long item)
Add a long value to a given hash.
|
static int |
hash(int hash,
Object item)
Add an object to a given hash.
|
static int |
hash(long item)
Hash a long value.
|
static int |
hash(Object... items)
Hash multiple objects.
|
static int |
hash(Object item)
Hash an object.
|
public static int hash(int hash, boolean item)
public static int hash(int hash, char item)
public static int hash(int hash, int item)
public static int hash(int hash, long item)
public static int hash(int hash, float item)
public static int hash(int hash, double item)
public static int hash(int hash, Object item)
public static int hash(boolean item)
public static int hash(char item)
public static int hash(int item)
public static int hash(long item)
public static int hash(float item)
public static int hash(double item)
public static int hash(Object item)
public static int hash(Object... items)