public class Hashing
extends java.lang.Object
| Constructor and Description |
|---|
Hashing() |
| Modifier and Type | Method and Description |
|---|---|
static int |
evenHash(int value,
int mask)
Generate an even hash for a int value.
|
static int |
evenHash(long value,
int mask)
Generate an even hash for a long value.
|
static int |
hash(int value,
int mask)
Generate a hash for a int value.
|
static int |
hash(int valueOne,
int valueTwo,
int mask)
Generate a hash for two ints.
|
static int |
hash(long value,
int mask)
Generate a hash for a long value.
|
public static int hash(int value,
int mask)
value - to be hashed.mask - mask to be applied that must be a power of 2 - 1.public static int hash(long value,
int mask)
value - to be hashed.mask - mask to be applied that must be a power of 2 - 1.public static int hash(int valueOne,
int valueTwo,
int mask)
valueOne - to be hashed.valueTwo - to be hashed.mask - mask to be applied that must be a power of 2 - 1.public static int evenHash(int value,
int mask)
value - to be hashed.mask - mask to be applied that must be a power of 2 - 1.public static int evenHash(long value,
int mask)
value - to be hashed.mask - mask to be applied that must be a power of 2 - 1.Copyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.