List of utility methods to do Hash Calculate
int | hash(int state1, int state2, int numStates1) hash return state1 + numStates1 * state2;
|
int | hash(int val) hash return FNVhash32(val); |
int | hash(int value) hash return (value * KnuthsAValue) >>> (INT_SIZE - K);
|
int | hash(int x, int y) hash int h = 31; h = h * 97 + x; h *= 17; h = h * 97 + y; h *= 17; return h; |
long | hash(long key) hash key ^= key >>> 33;
key *= 0xff51afd7ed558ccdL;
key ^= key >>> 33;
key *= 0xc4ceb9fe1a85ec53L;
key ^= key >>> 33;
return key;
|
long | hash(long mover, long enemy) Hash 2 longs into a single long, using a mixing function derived from Murmur. final long a = murmurMix(mover ^ murmurMix(enemy)); return a ^ (a >>> 47); |
int | hash(Object a, Object b) hash return hashCombine(a.hashCode(), b.hashCode());
|
int | hash(Object key, int limit) hash if (limit == 1) { return 0; int hashValue = hash(key.hashCode()); if (hashValue == Integer.MIN_VALUE) { hashValue -= 1; hashValue = Math.abs(hashValue); ... |
int | hash(Object o) hash return o == null ? 0 : o.hashCode();
|
int | hash(Object obj) hash final int prime = 31; int result = 1; result = prime * result + ((obj == null) ? 0 : obj.hashCode()); return result; |