/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | ChronoZonedDateTimeImpl.java | 377 public int hashCode() { method in class:ChronoZonedDateTimeImpl 378 return toLocalDateTime().hashCode() ^ getOffset().hashCode() ^ Integer.rotateLeft(getZone().hashCode(), 3);
|
H A D | MinguoDate.java | 467 public int hashCode() { method in class:MinguoDate 468 return getChronology().getId().hashCode() ^ isoDate.hashCode();
|
H A D | ThaiBuddhistDate.java | 467 public int hashCode() { method in class:ThaiBuddhistDate 468 return getChronology().getId().hashCode() ^ isoDate.hashCode();
|
/libcore/ojluni/src/main/java/java/time/zone/ |
H A D | ZoneOffsetTransitionRule.java | 536 public int hashCode() { method in class:ZoneOffsetTransitionRule 540 return hash ^ standardOffset.hashCode() ^ 541 offsetBefore.hashCode() ^ offsetAfter.hashCode();
|
H A D | ZoneRules.java | 1010 public int hashCode() { method in class:ZoneRules 1011 return Arrays.hashCode(standardTransitions) ^ 1012 Arrays.hashCode(standardOffsets) ^ 1013 Arrays.hashCode(savingsInstantTransitions) ^ 1014 Arrays.hashCode(wallOffsets) ^ 1015 Arrays.hashCode(lastRules);
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | List.java | 47 * <tt>hashCode</tt> methods. Declarations for other inherited methods are 73 * extreme caution is advised: the <tt>equals</tt> and <tt>hashCode</tt> 540 * int hashCode = 1; 542 * hashCode = 31*hashCode + (e==null ? 0 : e.hashCode()); 545 * <tt>list1.hashCode()==list2.hashCode()</tt> for any two lists, 547 * contract of {@link Object#hashCode}. 553 int hashCode(); method in interface:List [all...] |
H A D | EnumMap.java | 110 public int hashCode() { 623 public int hashCode() { method in class:EnumMap.EntryIterator.Entry 625 return super.hashCode(); 704 public int hashCode() { method in class:EnumMap 717 return (keyUniverse[index].hashCode() ^ vals[index].hashCode());
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
H A D | BigDecimalTest.java | 351 * @tests java.math.BigDecimal#hashCode() 354 // anything that is equal must have the same hashCode 357 assertTrue("the hashCode of 1.00 and 1.00D is equal", 358 hash.hashCode() != hash2.hashCode() && !hash.equals(hash2)); 360 assertTrue("the hashCode of 1.0 and 1.00 is equal", 361 hash.hashCode() != hash2.hashCode() && !hash.equals(hash2)); 364 assertTrue("hashCode of 1.00 and 1.00(bigInteger) is not equal", hash 365 .hashCode() [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | RuleBasedCollatorTest.java | 47 assertEquals(coll.hashCode(), same.hashCode()); 222 key.hashCode();
|
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | AnnotationFactory.java | 238 * @see AnnotationMember#hashCode() 240 public int hashCode() { method in class:AnnotationFactory 243 hash += element.hashCode(); 284 } else if ("hashCode".equals(name)) { 285 return hashCode();
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | ProcessBuilder.java | 315 * {@link Object#hashCode} methods. 654 public int hashCode() { method in class:ProcessBuilder.Redirect 657 return super.hashCode(); 659 return file.hashCode();
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
H A D | Field.java | 223 public int hashCode() { method in class:Field 224 return getDeclaringClass().getName().hashCode() ^ getName().hashCode();
|
H A D | WeakCache.java | 258 * The {@link #equals} and {@link #hashCode} of implementations is defined 281 public int hashCode() { method in class:WeakCache.LookupValue 307 public int hashCode() { method in class:WeakCache.CacheValue 349 public int hashCode() { method in class:WeakCache.CacheKey
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
H A D | AclEntry.java | 360 return h * 127 + o.hashCode(); 367 * Object#hashCode} method. 370 public int hashCode() { method in class:AclEntry 374 int h = type.hashCode();
|
/libcore/ojluni/src/main/java/java/util/jar/ |
H A D | Manifest.java | 302 public int hashCode() { method in class:Manifest 303 return attr.hashCode() + entries.hashCode();
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | CertificateExtensions.java | 337 public int hashCode() { method in class:CertificateExtensions 338 return map.hashCode() + getUnparseableExtensions().hashCode();
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
H A D | CalendarDate.java | 411 public int hashCode() { method in class:CalendarDate 421 era = e.hashCode(); 423 int zone = zoneinfo != null ? zoneinfo.hashCode() : 0;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | ByteTest.java | 40 * java.lang.Byte#hashCode() 43 assertEquals(1, new Byte((byte) 1).hashCode()); 44 assertEquals(2, new Byte((byte) 2).hashCode()); 45 assertEquals(0, new Byte((byte) 0).hashCode()); 46 assertEquals(-1, new Byte((byte) -1).hashCode()); 510 * java.lang.Byte#hashCode() 513 // Test for method int java.lang.Byte.hashCode() 514 assertEquals("Incorrect hash returned", 127, new Byte((byte) 127).hashCode());
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ConcurrentHashMapTest.java | 67 public int hashCode() { return 42; } method in class:ConcurrentHashMapTest.BI 81 public int hashCode() { return 42; } method in class:ConcurrentHashMapTest.BS 105 public int hashCode() { return this.value.hashCode() & 1; } method in class:ConcurrentHashMapTest.CollidingObject 236 * hashCode() equals sum of each key.hashCode ^ value.hashCode 242 sum += e.getKey().hashCode() ^ e.getValue().hashCode(); 243 assertEquals(sum, map.hashCode()); [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | ProcessBuilderTest.java | 337 * We test this by asserting that they use the identity hashCode, 350 @Override public int hashCode() { return 1 + file.hashCode(); } 354 assertFalse("Unexpectedly equal hashCode: " + a + " vs. " + b, 355 a.hashCode() == b.hashCode()); 359 * Tests that {@link Redirect}'s equals() and hashCode() is sane. 519 assertEquals(System.identityHashCode(redirect), redirect.hashCode()); 525 assertEquals(a.hashCode(), b.hashCode()); [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
H A D | TCKZoneRules.java | 246 assertEquals(trans.hashCode(), otherTrans.hashCode()); 272 assertEquals(trans.hashCode(), otherTrans.hashCode()); 626 assertEquals(trans.hashCode(), otherTrans.hashCode()); 650 assertEquals(trans.hashCode(), otherTrans.hashCode()); 832 assertEquals(trans.hashCode(), otherTrans.hashCode()); [all...] |
/libcore/json/src/test/java/libcore/org/json/ |
H A D | JSONArrayTest.java | 67 assertEquals("equals() not consistent with hashCode()", a.hashCode(), b.hashCode()); 74 assertEquals(a.hashCode(), b.hashCode()); 78 assertTrue(a.hashCode() != b.hashCode());
|
/libcore/luni/src/main/java/libcore/util/ |
H A D | ZoneInfo.java | 645 public int hashCode() { method in class:ZoneInfo 648 result = prime * result + getID().hashCode(); 649 result = prime * result + Arrays.hashCode(mOffsets); 650 result = prime * result + Arrays.hashCode(mIsDsts); 652 result = prime * result + Arrays.hashCode(mTransitions); 653 result = prime * result + Arrays.hashCode(mTypes);
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKZoneOffset.java | 566 // equals() / hashCode() 580 assertEquals(offset1.hashCode() == offset1.hashCode(), true); 581 assertEquals(offset2.hashCode() == offset2.hashCode(), true); 582 assertEquals(offset2.hashCode() == offset2b.hashCode(), true);
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
H A D | TestZoneId.java | 280 assertEquals(trans.hashCode(), otherTrans.hashCode()); 306 assertEquals(trans.hashCode(), otherTrans.hashCode()); 433 assertEquals(trans.hashCode(), otherDis.hashCode()); 457 assertEquals(trans.hashCode(), otherDis.hashCode()); 606 assertEquals(trans.hashCode(), otherTrans.hashCode()); [all...] |