@Test public void testHash_int_boolean() throws Exception { int hashResult = HashCodeUtil.hash(HashCodeUtil.SEED, true); assert hashResult == HASH_CODE_TRUE; assert hashResult != HASH_CODE_FALSE; hashResult = HashCodeUtil.hash(HashCodeUtil.SEED, false); assert hashResult != HASH_CODE_TRUE; assert hashResult == HASH_CODE_FALSE; hashResult = HashCodeUtil.hash(4444, true); assert hashResult != HASH_CODE_TRUE; assert hashResult != HASH_CODE_FALSE; }
public static int hash(int seed, boolean bool) { return firstTerm(seed) + (bool ? 1 : 0); }
HashCodeUtil { public static int hash(int seed, boolean bool) { return firstTerm(seed) + (bool ? 1 : 0); } }
HashCodeUtil { public static int hash(int seed, boolean bool) { return firstTerm(seed) + (bool ? 1 : 0); }  }
HashCodeUtil { public static int hash(int seed, boolean bool) { return firstTerm(seed) + (bool ? 1 : 0); }  static int hash(int seed, boolean bool); static int hash(int seed, char c); static int hash(int seed, int x); static int hash(int seed, long x); static int hash(int seed, float x); static int hash(int seed, double x); static int hash(int seed, Object object); }
HashCodeUtil { public static int hash(int seed, boolean bool) { return firstTerm(seed) + (bool ? 1 : 0); }  static int hash(int seed, boolean bool); static int hash(int seed, char c); static int hash(int seed, int x); static int hash(int seed, long x); static int hash(int seed, float x); static int hash(int seed, double x); static int hash(int seed, Object object); static final int SEED; }