EqualityUtil { public static int hashInts(final int... integers) { final int prime = 31; int result = 1; for (final int integer : integers) { result = prime * result + integer; } return result; } private  EqualityUtil(); static boolean different(final Object o1, final Object o2); static boolean equal(final Object o1, final Object o2); static int hashObjects(final Object... objects); static int hashInts(final int... integers);  }
@Test public final void testHashInts() { Assert.assertEquals(994, EqualityUtil.hashInts(1, 2)); }