public final class Util
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static long |
HASHPRIME
Prime number used in hash code computation.
|
Modifier | Constructor and Description |
---|---|
private |
Util()
Fake constructor: do not instantiate.
|
Modifier and Type | Method and Description |
---|---|
static int |
mixHashCodes(int... hash)
Mix multiple hashcodes into one.
|
static int |
mixHashCodes(int hash1,
int hash2)
Mix multiple hashcodes into one.
|
static int |
mixHashCodes(int hash1,
int hash2,
int hash3)
Mix multiple hashcodes into one.
|
private static final long HASHPRIME
public static int mixHashCodes(int hash1, int hash2)
hash1
- First hashcode to mixhash2
- Second hashcode to mixpublic static int mixHashCodes(int hash1, int hash2, int hash3)
hash1
- First hashcode to mixhash2
- Second hashcode to mixhash3
- Third hashcode to mixpublic static int mixHashCodes(int... hash)
hash
- Hashcodes to mixCopyright © 2019 ELKI Development Team. License information.