Murmur3_x86_32 { public int hashInt(int input) { int k1 = mixK1(input); int h1 = mixH1(seed, k1); return fmix(h1, 4); } Murmur3_x86_32(int seed); @Override String toString(); int hashInt(int input); int hashLong(long input);  }
@Test public void testKnownIntegerInputs() { Assert.assertEquals(593689054, hasher.hashInt(0)); Assert.assertEquals(-189366624, hasher.hashInt(-42)); Assert.assertEquals(-1134849565, hasher.hashInt(42)); Assert.assertEquals(-1718298732, hasher.hashInt(Integer.MIN_VALUE)); Assert.assertEquals(-1653689534, hasher.hashInt(Integer.MAX_VALUE)); }