/libcore/luni/src/main/java/libcore/internal/ |
H A D | StringPool.java | 45 int hashCode = 0; 47 hashCode = (hashCode * 31) + array[i]; 51 hashCode ^= (hashCode >>> 20) ^ (hashCode >>> 12); 52 hashCode ^= (hashCode >>> 7) ^ (hashCode >>> 4); 53 int index = hashCode [all...] |
/libcore/luni/src/main/java/java/sql/ |
H A D | RowId.java | 35 int hashCode(); method in interface:RowId
|
/libcore/luni/src/main/java/java/lang/annotation/ |
H A D | Annotation.java | 91 * (0x7f * n.hashCode()) ^ v.hashCode())}, where {@code n} is the 97 * Integer.valueOf(v).hashCode()} is used for an {@code int} value 102 * using the corresponding {@code hashCode(v)} helper function in 107 * calling their {@code hashCode} method. 113 int hashCode(); method in interface:Annotation
|
/libcore/luni/src/main/java/java/security/ |
H A D | Principal.java | 49 * required by the general contract of {@link Object#hashCode}. 55 public int hashCode(); method in interface:Principal
|
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldParsePositionTest.java | 26 // Test for method int java.text.ParsePosition.hashCode() 29 assertTrue("hashCode returns non equal hash codes for equal objects.", 30 pp1.hashCode() == pp2.hashCode()); 32 assertTrue("hashCode returns equal hash codes for non equal objects.", 33 pp1.hashCode() != pp2.hashCode());
|
H A D | OldAttributedCharacterIteratorAttributeTest.java | 115 * java.text.AttributedCharacterIterator.Attribute#hashCode() 125 .hashCode() != mac2.hashCode()); 131 .hashCode() != mac3.hashCode()); 136 mac1.hashCode() == mac4.hashCode());
|
/libcore/luni/src/test/java/tests/security/spec/ |
H A D | ECFieldFpTest.java | 103 * Test #1 for <code>hashCode()</code> method.<br> 110 int hc = f.hashCode(); 111 assertTrue(hc == f.hashCode() && 112 hc == f.hashCode() && 113 hc == f.hashCode() && 114 hc == f.hashCode() && 115 hc == f.hashCode() && 116 hc == f.hashCode() && 117 hc == f.hashCode() && 118 hc == f.hashCode()); [all...] |
H A D | ECFieldF2mTest.java | 318 * Test #1 for <code>hashCode()</code> method.<br> 325 int hc = f.hashCode(); 326 assertTrue(hc == f.hashCode() && 327 hc == f.hashCode() && 328 hc == f.hashCode() && 329 hc == f.hashCode() && 330 hc == f.hashCode() && 331 hc == f.hashCode() && 332 hc == f.hashCode() && 333 hc == f.hashCode()); [all...] |
H A D | ECPointTest.java | 194 * Test #1 for <code>hashCode()</code> method.<br> 201 int hc = f.hashCode(); 202 assertTrue(hc == f.hashCode() && 203 hc == f.hashCode() && 204 hc == f.hashCode() && 205 hc == f.hashCode() && 206 hc == f.hashCode() && 207 hc == f.hashCode() && 208 hc == f.hashCode() && 209 hc == f.hashCode()); [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
H A D | CollationKeyICU.java | 27 private int hashCode; field in class:CollationKeyICU 94 @Override public int hashCode() { method in class:CollationKeyICU 95 if (hashCode == 0) { 100 hashCode = (hashCode * 37) + bytes[i]; 104 if (hashCode == 0) { 105 hashCode = 1; 108 return hashCode;
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
H A D | FieldTest.java | 35 assertEquals(f1.hashCode(), f2.hashCode()); 40 assertEquals(FieldTestHelper.class.getName().hashCode() ^ "a".hashCode(), f1.hashCode());
|
/libcore/luni/src/main/java/java/net/ |
H A D | InterfaceAddress.java | 91 public int hashCode() { method in class:InterfaceAddress 92 int hashCode = address == null ? 0 : -address.hashCode(); 93 hashCode += broadcastAddress == null ? 0 : broadcastAddress.hashCode(); 94 hashCode += prefixLength; 95 return hashCode;
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldCharacterSubsetTest.java | 36 assertFalse(subset1.hashCode() == subset2.hashCode()); 37 assertFalse(subset1.hashCode() == subset3.hashCode());
|
/libcore/luni/src/main/java/java/security/spec/ |
H A D | ECFieldFp.java | 92 public int hashCode() { method in class:ECFieldFp 93 return p.hashCode();
|
H A D | ECPoint.java | 110 public int hashCode() { method in class:ECPoint 112 return affineX.hashCode() * 31 + affineY.hashCode();
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldProxyTest.java | 44 assertTrue(proxy1.hashCode() == proxy2.hashCode()); 48 assertTrue(proxy1.hashCode() == proxy2.hashCode()); 50 assertTrue(proxy1.hashCode() != proxy4.hashCode()); 56 assertTrue(proxy5.hashCode() != proxy6.hashCode());
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
H A D | BigIntegerHashCodeTest.java | 29 * Method: hashCode() 40 int code1 = aNumber1.hashCode(); 46 int code2 = aNumber1.hashCode(); 58 int code1 = aNumber1.hashCode(); 59 int code2 = aNumber2.hashCode(); 74 int code1 = aNumber1.hashCode(); 75 int code2 = aNumber2.hashCode();
|
H A D | MathContextTest.java | 64 // hashCode(.) 66 mcIntRm6hd.hashCode(), mcStr6hd.hashCode() ); 68 mcInt6.hashCode() == mcStr6hd.hashCode() ); 70 mcInt6.hashCode() == mcInt134.hashCode() );
|
/libcore/luni/src/main/java/java/text/ |
H A D | DateFormatSymbols.java | 185 * @see #hashCode 353 public int hashCode() { method in class:DateFormatSymbols 355 int hashCode; 356 hashCode = localPatternChars.hashCode(); 358 hashCode += element.hashCode(); 361 hashCode += element.hashCode(); 364 hashCode [all...] |
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | GenericArrayTypeImpl.java | 48 public int hashCode() { method in class:GenericArrayTypeImpl 49 return Objects.hashCode(getGenericComponentType());
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | TimestampTest.java | 104 * Class under test for String hashCode() 113 assertTrue(one.hashCode() == two.hashCode()); 114 assertTrue(one.hashCode() != three.hashCode()); 115 assertTrue(two.hashCode() != three.hashCode()); 118 four.hashCode();
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | EntryTest.java | 67 assertEquals(e2.hashCode(), e.hashCode()); 69 assertEquals(s2.hashCode(), s.hashCode()); 71 assertEquals(e2.hashCode(), s2.hashCode()); 73 assertEquals(e.hashCode(), s.hashCode());
|
/libcore/libart/src/main/java/java/lang/ |
H A D | Object.java | 68 * <p>If you override {@code equals}, you should also override {@code hashCode}: equal 73 * <a name="writing_hashCode"><h4>Writing a correct {@code hashCode} method</h4></a> 74 * <p>Follow this style to write a canonical {@code hashCode} method: 76 * @Override public int hashCode() { 95 * result = 31 * result + Arrays.hashCode(arrayField); 97 * result = 31 * result + referenceField.hashCode(); 100 * : nullableReferenceField.hashCode()); 107 * {@code hashCode} implementation, because that silently and non-obviously breaks any future 110 * @Override public int hashCode() { 193 * #hashCode()} method 275 public int hashCode() { method in class:Object [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | AbstractSet.java | 45 * @see #hashCode 75 public int hashCode() { method in class:AbstractSet 80 result += next == null ? 0 : next.hashCode();
|
H A D | Map.java | 46 * @see #hashCode() 71 public int hashCode(); method in interface:Map.Entry 131 * @see #hashCode() 153 public int hashCode(); method in interface:Map
|