Lines Matching refs:hashCode

27  * @summary Test the primitive wrappers hashCode()
55 check( new Long(x).hashCode() == (int)((long)x ^ (long)x>>>32));
56 check(Long.valueOf(x).hashCode() == (int)((long)x ^ (long)x>>>32));
57 check( (new Long(x)).hashCode() == Long.hashCode(x));
58 check( new Integer((int)x).hashCode() == (int) x);
59 check(Integer.valueOf((int)x).hashCode() == (int) x);
60 check( (new Integer((int)x)).hashCode() == Integer.hashCode((int)x));
61 check( new Short((short)x).hashCode() == (short) x);
62 check(Short.valueOf((short)x).hashCode() == (short) x);
63 check( (new Short((short)x)).hashCode() == Short.hashCode((short)x));
64 check( new Character((char) x).hashCode() == (char) x);
65 check(Character.valueOf((char) x).hashCode() == (char) x);
66 check( (new Character((char)x)).hashCode() == Character.hashCode((char)x));
67 check( new Byte((byte) x).hashCode() == (byte) x);
68 check(Byte.valueOf((byte) x).hashCode() == (byte) x);
69 check( (new Byte((byte)x)).hashCode() == Byte.hashCode((byte)x));
74 check( Boolean.FALSE.hashCode() == 1237);
75 check( Boolean.TRUE.hashCode() == 1231);
76 check( Boolean.valueOf(false).hashCode() == 1237);
77 check( Boolean.valueOf(true).hashCode() == 1231);
78 check( (new Boolean(false)).hashCode() == 1237);
79 check( (new Boolean(true)).hashCode() == 1231);
80 check( Boolean.hashCode(false) == 1237);
81 check( Boolean.hashCode(true) == 1231);
95 check( Float.hashCode(f) == Float.floatToIntBits(f));
96 check( Float.valueOf(f).hashCode() == Float.floatToIntBits(f));
97 check( (new Float(f)).hashCode() == Float.floatToIntBits(f));
114 check( Double.hashCode(d) == bitsHash);
115 check( Double.valueOf(d).hashCode() == bitsHash);
116 check( (new Double(d)).hashCode() == bitsHash);