37 public static long hash(
final long prime,
final byte a[]) {
42 for (
int i=0; i<a.length; i++) {
48 public static long hash(
final long prime,
final int a,
final int b) {
49 final long h = prime + a;
53 public static long hash(
final long prime,
final long a,
final long b) {
54 final long h = prime + a;
62 public static long hash31(
final long a,
final long b) {
64 final long hash = 31 + a;
static long hash(final long prime, final byte a[])
static long hash(final long prime, final int a, final int b)
static long hash(final long prime, final long a, final long b)
static long hash31(final long a, final long b)
Generates a 64bit equally distributed hash value from addr and size avoiding XOR collisions.