@Immutable public class HashCode extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
PRIME |
Modifier | Constructor and Description |
---|---|
private |
HashCode() |
Modifier and Type | Method and Description |
---|---|
static int |
compute(Object... objects)
Compute a combined hash code from the supplied objects.
|
private static int |
computeHashCode(int seed,
Object... objects)
Compute a combined hash code from the supplied objects using the supplied seed.
|
private static final int PRIME
public static int compute(Object... objects)
objects
- the objects that should be used to compute the hash codeprivate static int computeHashCode(int seed, Object... objects)
seed
- a value upon which the hash code will be based; may be 0objects
- the objects that should be used to compute the hash codeCopyright © 2020 JBoss by Red Hat. All rights reserved.