public class HashCode$
extends java.lang.Object
hashCode
.
Example:
override def hashCode: Int = { var result = HashCode.SEED //collect the contributions of various fields result = HashCode.hash(result, fPrimitive) result = HashCode.hash(result, fObject) result = HashCode.hash(result, fArray) result }
Modifier and Type | Field and Description |
---|---|
static HashCode$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
HashCode$() |
Modifier and Type | Method and Description |
---|---|
int |
hash(int seed,
boolean value) |
int |
hash(int seed,
char value) |
int |
hash(int seed,
double value) |
int |
hash(int seed,
float value) |
int |
hash(int seed,
int value) |
int |
hash(int seed,
long value) |
int |
hash(int seed,
java.lang.Object any) |
int |
SEED() |
public static final HashCode$ MODULE$
public int SEED()
public int hash(int seed, java.lang.Object any)
public int hash(int seed, boolean value)
public int hash(int seed, char value)
public int hash(int seed, int value)
public int hash(int seed, long value)
public int hash(int seed, float value)
public int hash(int seed, double value)