| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SEED
The default seed if one is not explicitly given.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
hashInt(int x)
Hash the given integer value using the default seed (@link
DEFAULT_SEED). |
static int |
hashIntWithSeed(int x,
int seed)
Hash the given integer value using the given seed to randomize the
results.
|
static int |
hashLong(long x)
Hash the given long value using the default seed (@link
DEFAULT_SEED). |
static int |
hashLongWithSeed(long x,
int seed)
Hash the given long value using the given seed to randomize the results.
|
public static final int DEFAULT_SEED
public static int hashInt(int x)
DEFAULT_SEED).x - The integer value.public static int hashIntWithSeed(int x,
int seed)
x - The integer value.seed - The seed value.public static int hashLong(long x)
DEFAULT_SEED).x - The long value.public static int hashLongWithSeed(long x,
int seed)
x - The long value.seed - The seed value.Copyright © 2015 <code@io7m.com> http://io7m.com