Searched refs:hashCode (Results 1 - 25 of 444) sorted by relevance

1234567891011>>

/libcore/luni/src/main/java/libcore/internal/
H A DStringPool.java45 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/ojluni/src/main/java/java/sql/
H A DRowId.java118 int hashCode(); method in interface:RowId
/libcore/luni/src/test/java/libcore/java/text/
H A DOldParsePositionTest.java26 // 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 DOldAttributedCharacterIteratorAttributeTest.java115 * java.text.AttributedCharacterIterator.Attribute#hashCode()
125 .hashCode() != mac2.hashCode());
131 .hashCode() != mac3.hashCode());
136 mac1.hashCode() == mac4.hashCode());
/libcore/ojluni/src/main/java/java/lang/annotation/
H A DAnnotation.java91 * of the member-name as computed by {@link String#hashCode()}) XOR
97 * <tt><i>WrapperType</i>.valueOf(<i>v</i>).hashCode()</tt>, where
105 * <tt><i>v</i>.hashCode()</tt>. (In the case of annotation
110 * {@link java.util.Arrays#hashCode(long[]) Arrays.hashCode}
117 int hashCode(); method in interface:Annotation
/libcore/luni/src/test/java/tests/security/spec/
H A DECFieldFpTest.java103 * 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 DECFieldF2mTest.java318 * 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 DECPointTest.java194 * 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/ojluni/src/test/java/time/test/java/time/
H A DTestPeriod.java93 // hashCode()
101 assertEquals(test5.hashCode() == test5.hashCode(), true);
102 assertEquals(test5.hashCode() == test6.hashCode(), false);
103 assertEquals(test5.hashCode() == test5M.hashCode(), false);
104 assertEquals(test5.hashCode() == test5Y.hashCode(), false);
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldCharacterSubsetTest.java36 assertFalse(subset1.hashCode() == subset2.hashCode());
37 assertFalse(subset1.hashCode() == subset3.hashCode());
/libcore/luni/src/test/java/libcore/java/net/
H A DOldProxyTest.java44 assertTrue(proxy1.hashCode() == proxy2.hashCode());
48 assertTrue(proxy1.hashCode() == proxy2.hashCode());
50 assertTrue(proxy1.hashCode() != proxy4.hashCode());
56 assertTrue(proxy5.hashCode() != proxy6.hashCode());
/libcore/ojluni/src/main/java/java/security/spec/
H A DECFieldFp.java95 public int hashCode() { method in class:ECFieldFp
96 return p.hashCode();
H A DECPoint.java110 public int hashCode() { method in class:ECPoint
112 return x.hashCode() << 5 + y.hashCode();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
H A DBigIntegerHashCodeTest.java29 * 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 DMathContextTest.java64 // hashCode(.)
66 mcIntRm6hd.hashCode(), mcStr6hd.hashCode() );
68 mcInt6.hashCode() == mcStr6hd.hashCode() );
70 mcInt6.hashCode() == mcInt134.hashCode() );
/libcore/ojluni/src/main/java/sun/security/x509/
H A DDistributionPointName.java92 // Cached hashCode value
93 private volatile int hashCode; field in class:DistributionPointName
213 public int hashCode() { method in class:DistributionPointName
214 int hash = hashCode;
218 hash += fullName.hashCode();
221 hash += relativeName.hashCode();
223 hashCode = hash;
H A DCertificatePolicyId.java107 public int hashCode() { method in class:CertificatePolicyId
108 return id.hashCode();
/libcore/luni/src/main/java/libcore/reflect/
H A DGenericArrayTypeImpl.java48 public int hashCode() { method in class:GenericArrayTypeImpl
49 return Objects.hashCode(getGenericComponentType());
/libcore/ojluni/src/main/java/java/net/
H A DProxy.java166 public final int hashCode() { method in class:Proxy
168 return type().hashCode();
169 return type().hashCode() + address().hashCode();
/libcore/ojluni/src/main/java/java/security/
H A DCodeSigner.java106 public int hashCode() { method in class:CodeSigner
109 myhash = signerCertPath.hashCode();
111 myhash = signerCertPath.hashCode() + timestamp.hashCode();
H A DPrincipal.java65 public int hashCode(); method in interface:Principal
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DTimestampTest.java104 * 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/ojluni/src/main/java/java/security/cert/
H A DCertPath.java199 * hashCode = path.getType().hashCode();
200 * hashCode = 31*hashCode + path.getCertificates().hashCode();
203 * {@code path1.hashCode()==path2.hashCode()} for any two certification
205 * general contract of {@code Object.hashCode}.
209 public int hashCode() { method in class:CertPath
210 int hashCode
[all...]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DFieldTest.java37 assertEquals(f1.hashCode(), f2.hashCode());
42 assertEquals(FieldTestHelper.class.getName().hashCode() ^ "a".hashCode(), f1.hashCode());
/libcore/ojluni/src/main/java/java/text/
H A DDateFormatSymbols.java661 // Android-changed: don't include zone strings in hashCode to avoid populating it.
734 * Override hashCode.
738 public int hashCode() { method in class:DateFormatSymbols
739 int hashCode = cachedHashCode;
740 if (hashCode == 0) {
741 hashCode = 5;
742 hashCode = 11 * hashCode + Arrays.hashCode(eras);
743 hashCode
[all...]

Completed in 757 milliseconds

1234567891011>>