/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | EntryTest.java | 79 assertEquals(e2.hashCode(), e.hashCode()); 81 assertEquals(s2.hashCode(), s.hashCode()); 83 assertEquals(e2.hashCode(), s2.hashCode()); 85 assertEquals(e.hashCode(), s.hashCode());
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | CollationKeyICU.java | 65 public int hashCode() { method in class:CollationKeyICU 66 return key.hashCode();
|
/libcore/luni/src/test/java/libcore/android/system/ |
H A D | StructTimespecTest.java | 139 assertEquals(allZero1.hashCode(), allZero2.hashCode()); 140 assertEquals(val1.hashCode(), val2.hashCode()); 141 assertEquals(secZero1.hashCode(), secZero2.hashCode()); 142 assertEquals(nsecZero1.hashCode(), nsecZero2.hashCode());
|
/libcore/luni/src/test/java/libcore/libcore/internal/ |
H A D | StringPoolTest.java | 35 assertEquals(new String(a).hashCode(), new String(b).hashCode());
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | AbstractSet.java | 42 * for <tt>equals</tt> and <tt>hashCode</tt>.<p> 108 * <tt>s1.hashCode()==s2.hashCode()</tt> for any two sets <tt>s1</tt> 110 * {@link Object#hashCode}. 113 * <tt>hashCode</tt> method on each element in the set, and adding up 120 public int hashCode() { method in class:AbstractSet 126 h += obj.hashCode();
|
H A D | Objects.java | 95 * @see Object#hashCode 97 public static int hashCode(Object o) { method in class:Objects 98 return o != null ? o.hashCode() : 0; 105 * Arrays#hashCode(Object[])}. 108 * Object#hashCode()} on objects containing multiple fields. For 113 * @Override public int hashCode() { 120 * value can be computed by calling {@link #hashCode(Object)}. 124 * @see Arrays#hashCode(Object[]) 125 * @see List#hashCode 128 return Arrays.hashCode(value [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKClock_Fixed.java | 143 assertEquals(a.hashCode(), a.hashCode()); 144 assertEquals(a.hashCode(), b.hashCode()); 147 assertEquals(a.hashCode() == c.hashCode(), false); 150 assertEquals(a.hashCode() == d.hashCode(), false);
|
H A D | TCKClock_Offset.java | 152 assertEquals(a.hashCode(), a.hashCode()); 153 assertEquals(a.hashCode(), b.hashCode()); 156 assertEquals(a.hashCode() == c.hashCode(), false); 159 assertEquals(a.hashCode() == d.hashCode(), false);
|
H A D | TCKClock_System.java | 185 assertEquals(a.hashCode(), a.hashCode()); 186 assertEquals(a.hashCode(), b.hashCode()); 189 assertEquals(a.hashCode() == c.hashCode(), false);
|
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | ParameterizedTypeImpl.java | 94 public int hashCode() { method in class:ParameterizedTypeImpl 95 return 31 * (31 * Objects.hashCode(getRawType()) + Objects.hashCode(getOwnerType())) + 96 Arrays.hashCode(args.getResolvedTypes());
|
H A D | AnnotationMember.java | 195 // this is needed for consistency with hashCode() 252 * <code> (name.hashCode() * 127) ^ value.hashCode() </code> 253 * <br>If value is an array, one of overloaded Arrays.hashCode() 256 * @see java.util.Arrays#hashCode(java.lang.Object[]) 257 * @see java.lang.annotation.Annotation#hashCode() 259 public int hashCode() { method in class:AnnotationMember 260 int hash = name.hashCode() * 127; 264 return hash ^ Arrays.hashCode((int[])value); 266 return hash ^ Arrays.hashCode((byt [all...] |
H A D | WildcardTypeImpl.java | 54 public int hashCode() { method in class:WildcardTypeImpl 55 return 31 * Arrays.hashCode(getLowerBounds()) + 56 Arrays.hashCode(getUpperBounds());
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | BooleanTest.java | 38 assertEquals(Boolean.TRUE.hashCode(), Boolean.hashCode(true)); 39 assertEquals(Boolean.FALSE.hashCode(), Boolean.hashCode(false));
|
/libcore/luni/src/test/java/libcore/java/util/jar/ |
H A D | OldAttributesTest.java | 71 assertNotSame(a.hashCode(), b.hashCode()); 74 assertNotSame(a.hashCode(), b.hashCode());
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | StackTraceElement.java | 229 public int hashCode() { method in class:StackTraceElement 230 int result = 31*declaringClass.hashCode() + methodName.hashCode(); 231 result = 31*result + Objects.hashCode(fileName);
|
H A D | Boolean.java | 200 public int hashCode() { method in class:Boolean 201 return Boolean.hashCode(value); 206 * {@code Boolean.hashCode()}. 212 public static int hashCode(boolean value) { method in class:Boolean
|
/libcore/ojluni/src/main/java/java/security/spec/ |
H A D | EllipticCurve.java | 188 * (field.hashCode() << 6) + (a.hashCode() << 4) + (b.hashCode() << 2) 191 public int hashCode() { method in class:EllipticCurve 192 return (field.hashCode() << 6 + 193 (a.hashCode() << 4) + 194 (b.hashCode() << 2));
|
/libcore/ojluni/src/main/java/java/text/ |
H A D | StringCharacterIterator.java | 247 if (hashCode() != that.hashCode()) 260 public int hashCode() method in class:StringCharacterIterator 262 return text.hashCode() ^ pos ^ begin ^ end;
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | InterfaceAddress.java | 121 * @see java.net.InterfaceAddress#hashCode() 142 public int hashCode() { method in class:InterfaceAddress 143 return address.hashCode() + ((broadcast != null) ? broadcast.hashCode() : 0) + maskLength;
|
/libcore/ojluni/src/main/java/java/security/ |
H A D | Timestamp.java | 108 public int hashCode() { method in class:Timestamp 110 myhash = timestamp.hashCode() + signerCertPath.hashCode();
|
/libcore/ojluni/src/main/java/java/time/ |
H A D | Clock.java | 432 * their state and to meet the contract of {@link Object#hashCode}. 433 * If not overridden, the behavior is defined by {@link Object#hashCode} 438 public int hashCode() { method in class:Clock 439 return super.hashCode(); 481 public int hashCode() { method in class:Clock.SystemClock 482 return zone.hashCode() + 1; 532 public int hashCode() { method in class:Clock.FixedClock 533 return instant.hashCode() ^ zone.hashCode(); 582 public int hashCode() { method in class:Clock.OffsetClock 640 public int hashCode() { method in class:Clock.TickClock [all...] |
/libcore/support/src/test/java/tests/util/ |
H A D | Pair.java | 70 public int hashCode() { method in class:Pair 73 result = prime * result + ((mFirst == null) ? 0 : mFirst.hashCode()); 74 result = prime * result + ((mSecond == null) ? 0 : mSecond.hashCode());
|
/libcore/luni/src/test/java/tests/security/cert/ |
H A D | CertPathTest.java | 76 * Test for <code>hashCode()</code> method<br> 84 assertTrue(cp1.hashCode() == cp2.hashCode()); 85 assertTrue(cp1.hashCode() != cp3.hashCode()); 89 * Test for <code>hashCode()</code> method<br> 95 assertTrue((cp1.hashCode() == cp2.hashCode()) && cp1.equals(cp2));
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
H A D | Handler.java | 96 protected int hashCode(URL u) { method in class:Handler 101 h += protocol.hashCode(); 107 return h + file.hashCode(); 113 h += enclosedURL.hashCode(); 115 h += fileWithoutEntry.hashCode(); 119 h += entry.hashCode();
|
/libcore/ojluni/src/main/java/javax/crypto/spec/ |
H A D | SecretKeySpec.java | 191 public int hashCode() { method in class:SecretKeySpec 197 return (retval ^= "desede".hashCode()); 200 this.algorithm.toLowerCase(Locale.ENGLISH).hashCode());
|