Searched refs:hashCode (Results 301 - 325 of 389) sorted by relevance

<<111213141516

/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
H A DCopyOnWriteArrayList.java295 public int hashCode() { method in class:CopyOnWriteArrayList
296 int hashCode = 1;
300 hashCode = 31 * hashCode + (obj == null ? 0 : obj.hashCode());
302 return hashCode;
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DInet6AddressTest.java1234 method = "hashCode",
1240 assertFalse(addr1.hashCode() == addr2.hashCode());
1243 assertTrue(addr1.hashCode() == addr2.hashCode());
1247 assertTrue(addr1.hashCode() == addr2.hashCode());
H A DInetAddressTest.java474 * @tests java.net.InetAddress#hashCode()
479 method = "hashCode",
487 fail("Exception during hashCode test : " + e.getMessage());
489 return host.hashCode();
493 int hashCode = getHashCode(Support_Configuration.InetTestIP);
496 assertFalse("Hash collision", hashCode == ip6HashCode);
498 assertFalse("Hash collision", hashCode == ip6LOHashCode);
H A DURLTest.java162 * Test method for {@link java.net.URL#hashCode()}.
167 method = "hashCode",
175 assertEquals("Assert 0: error in hashCode: not same",
176 testURL1.hashCode(), testURL2.hashCode());
177 assertFalse("Assert 0: error in hashCode: should be same", testURL1
178 .hashCode() == changedURL.hashCode());
/dalvik/libcore/luni/src/main/java/java/lang/
H A DString.java104 private int hashCode; field in class:String
830 * @see #hashCode
840 int hashCode1 = hashCode;
841 int hashCode2 = s.hashCode;
1022 public int hashCode() { method in class:String
1024 int hash = hashCode;
1035 hashCode = hash;
1846 s.hashCode = value;
/dalvik/libcore/luni/src/main/java/java/util/
H A DEnumMap.java83 public int hashCode() { method in class:EnumMap.Entry
85 .hashCode())
87 : enumMap.values[ordinal].hashCode());
546 * @see #hashCode()
H A DVector.java387 * @see #hashCode
500 public synchronized int hashCode() { method in class:Vector
504 + (elementData[i] == null ? 0 : elementData[i].hashCode());
H A DUUID.java421 public int hashCode() { method in class:UUID
/dalvik/libcore/luni/src/test/java/tests/api/java/util/
H A DHashtableTest.java469 * @tests java.util.Hashtable#hashCode()
474 method = "hashCode",
478 // Test for method int java.util.Hashtable.hashCode()
483 .next().hashCode())
485 assertTrue("Incorrect hashCode returned. Wanted: " + expectedHash
486 + " got: " + ht10.hashCode(), expectedHash == ht10.hashCode());
H A DDateTest.java423 * @tests java.util.Date#hashCode()
428 method = "hashCode",
432 // Test for method int java.util.Date.hashCode()
435 assertEquals("Returned incorrect hash", 1900000, d2.hashCode());
436 assertEquals("Returned incorrect hash", 0, d1.hashCode());
H A DLocaleTest.java620 method = "hashCode",
627 assertTrue(l1.hashCode() != l2.hashCode());
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
H A DIntegerTest.java345 * @tests java.lang.Integer#hashCode()
350 method = "hashCode",
354 // Test for method int java.lang.Integer.hashCode()
358 assertTrue("Returned incorrect hashcode", i1.hashCode() == 1000
359 && (i2.hashCode() == -1000));
844 * @tests java.lang.Integer#hashCode()
849 method = "hashCode",
853 assertEquals(1, new Integer(1).hashCode());
854 assertEquals(2, new Integer(2).hashCode());
855 assertEquals(0, new Integer(0).hashCode());
[all...]
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/
H A DSimpleDateFormatTest.java403 * @tests java.text.SimpleDateFormat#hashCode()
408 method = "hashCode",
414 assertTrue("clone has not equal hash code", clone.hashCode() == format
415 .hashCode());
418 .hashCode() == format.hashCode());
422 assertFalse("objects has equal hash code", format2.hashCode() == format
423 .hashCode());
/dalvik/libcore/icu/src/main/native/
H A DNativeCollation.cpp300 static jint hashCode(JNIEnv *env, jclass obj, jint address) { function
557 { "hashCode", "(I)I", (void*) hashCode },
/dalvik/libcore/luni/src/main/java/java/net/
H A DInetAddress.java469 public int hashCode() { method in class:InetAddress
471 return Arrays.hashCode(ipaddress);
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/util/
H A DAbstractMapTest.java453 method = "hashCode",
461 assertNotSame(amt1.hashCode(), amt2.hashCode());
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DConstructorTest.java196 * @tests java.lang.reflect.Constructor#hashCode()
201 method = "hashCode",
208 "The constructor's hashCode is not equal to the hashCode of the name of the declaring class",
209 ConstructorTestHelper.class.getName().hashCode(), constructor
210 .hashCode());
/dalvik/libcore/nio_char/src/main/java/java/nio/charset/
H A DCharset.java788 public final int hashCode() { method in class:Charset
789 return this.canonicalName.hashCode();
/dalvik/libcore/security/src/main/java/java/security/
H A DCodeSource.java311 * {@link Object#hashCode}.
318 public int hashCode() { method in class:CodeSource
320 // hashCode() is undocumented there. Should we also use certs[i] to
323 return location == null ? 0 : location.hashCode();
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
H A DIdentity2Test.java508 * @tests java.security.Identity#hashCode()
513 method = "hashCode",
519 assertEquals("The 2 hash codes are not equal", sub.hashCode(), sub2
520 .hashCode());
/dalvik/libcore/text/src/main/java/java/text/
H A DDecimalFormat.java673 * @see #hashCode
814 public int hashCode() { method in class:DecimalFormat
815 return dform.hashCode();
/dalvik/dx/src/com/android/dx/rop/code/
H A DInsn.java92 public final int hashCode() { method in class:Insn
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/
H A DPlatformAddress.java99 public final int hashCode() { method in class:PlatformAddress
/dalvik/libcore/nio/src/main/java/java/nio/
H A DByteBuffer.java652 public int hashCode() { method in class:ByteBuffer
H A DCharBuffer.java424 public int hashCode() { method in class:CharBuffer

Completed in 3028 milliseconds

<<111213141516