Searched refs:hashCode (Results 151 - 175 of 1062) sorted by relevance

1234567891011>>

/openjdk7/langtools/src/share/classes/com/sun/tools/apt/mirror/type/
H A DTypeMirrorImpl.java73 public int hashCode() { method in class:TypeMirrorImpl
74 return Types.hashCode(type);
/openjdk7/jdk/src/share/classes/sun/swing/
H A DBakedArrayList.java38 * A specialized ArrayList that caches its hashCode as well as overriding
40 * where the list won't change and you want to avoid the overhead of hashCode
41 * iterating through the elements invoking hashCode. This also assumes you'll
48 * The cached hashCode.
71 _hashCode = 31 * _hashCode + get(counter).hashCode();
75 public int hashCode() { method in class:BakedArrayList
/openjdk7/jdk/src/share/classes/sun/tools/tree/
H A DStringExpression.java73 public int hashCode() { method in class:StringExpression
74 return value.hashCode() ^ 3213;
H A DIntExpression.java60 public int hashCode() { method in class:IntExpression
/openjdk7/jdk/test/java/rmi/server/RemoteObject/notExtending/
H A DNotExtending.java27 * implement hashCode() and equals() methods so that instances
51 setHashValue(stub.hashCode());
59 public int hashCode() { method in class:NotExtending
61 * Test fails with a RuntimeException if the hashCode() method is
67 "hashCode() invoked before hashValue initialized");
89 * Verify that hashCode() is not invoked before it is
93 System.err.println("Server exported without invoking hashCode().");
/openjdk7/jdk/test/java/util/Collections/
H A DViewSynch.java74 public int hashCode() {return x.hashCode();} method in class:Int
/openjdk7/jdk/test/java/util/EnumMap/
H A DDistinctEntrySetElements.java56 if (hashSet.hashCode() != entrySet.hashCode()) {
/openjdk7/jdk/test/java/util/PluggableLocale/providersrc/
H A DFooDateFormat.java58 public int hashCode() { method in class:FooDateFormat
59 return sdf.hashCode();
/openjdk7/jdk/src/share/classes/sun/reflect/generics/reflectiveObjects/
H A DGenericArrayTypeImpl.java93 public int hashCode() { method in class:GenericArrayTypeImpl
96 genericComponentType.hashCode();
/openjdk7/jdk/test/sun/security/pkcs/EncryptedPrivateKeyInfo/
H A DEncryptedPKInfoEqualsHashCode.java28 * @summary Verify equals()/hashCode() contract honored
59 if ( (ev1.equals(ev2)) == (ev1.hashCode()==ev2.hashCode()) )
62 throw new Exception("Failed equals()/hashCode() contract");
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/xni/
H A DQName.java183 public int hashCode() { method in class:QName
185 return uri.hashCode() +
186 ((localpart != null) ? localpart.hashCode() : 0);
188 return (rawname != null) ? rawname.hashCode() : 0;
189 } // hashCode():int
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/util/
H A DJDKClassLoader.java159 public int hashCode() { method in class:JDKClassLoader.JDKClassLoaderCache.CacheKey
161 return className.hashCode();
163 return className.hashCode() ^ loader.hashCode();
/openjdk7/jdk/src/share/classes/javax/print/attribute/
H A DAttributeSet.java302 * <tt>t1.hashCode()==t2.hashCode()</tt> for any two attribute sets
304 * {@link java.lang.Object#hashCode() <CODE>Object.hashCode()</CODE>}.
308 public int hashCode(); method in interface:AttributeSet
/openjdk7/jdk/src/share/classes/sun/awt/im/
H A DInputMethodLocator.java80 public int hashCode() { method in class:InputMethodLocator
81 int result = descriptor.hashCode();
83 result |= loader.hashCode() << 10;
86 result |= locale.hashCode() << 20;
/openjdk7/jdk/src/share/classes/java/security/spec/
H A DEllipticCurve.java188 * (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));
/openjdk7/jdk/src/share/classes/java/text/
H A DStringCharacterIterator.java245 if (hashCode() != that.hashCode())
258 public int hashCode() method in class:StringCharacterIterator
260 return text.hashCode() ^ pos ^ begin ^ end;
/openjdk7/jdk/src/share/classes/javax/management/
H A DMBeanFeatureInfo.java155 public int hashCode() { method in class:MBeanFeatureInfo
156 return getName().hashCode() ^ getDescription().hashCode() ^
157 getDescriptor().hashCode();
/openjdk7/jdk/src/share/classes/javax/management/openmbean/
H A DOpenMBeanInfo.java164 * where the hashCode of each of these arrays is calculated by a call to
165 * <tt>new java.util.HashSet(java.util.Arrays.asList(this.getSignature)).hashCode()</tt>).
167 * This ensures that <code> t1.equals(t2) </code> implies that <code> t1.hashCode()==t2.hashCode() </code>
170 * {@link Object#hashCode() Object.hashCode()}.
175 public int hashCode(); method in interface:OpenMBeanInfo
H A DOpenMBeanParameterInfo.java191 * This ensures that <code> t1.equals(t2) </code> implies that <code> t1.hashCode()==t2.hashCode() </code>
194 * {@link Object#hashCode() Object.hashCode()}.
199 public int hashCode(); method in interface:OpenMBeanParameterInfo
/openjdk7/jdk/src/share/classes/com/sun/jdi/
H A DLocation.java260 int hashCode(); method in interface:Location
/openjdk7/jdk/src/share/classes/com/sun/jndi/ldap/
H A DSimpleClientId.java64 myHash = super.hashCode()
65 + (username != null ? username.hashCode() : 0)
66 + (passwd != null ? passwd.hashCode() : 0);
91 public int hashCode() { method in class:SimpleClientId
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/xsom/impl/
H A DUName.java69 // UName was used in HashMap without overriden equals and hashCode methods.
85 public int hashCode() { method in class:UName
87 hash = 13 * hash + (this.nsUri != null ? this.nsUri.hashCode() : 0);
88 hash = 13 * hash + (this.localName != null ? this.localName.hashCode() : 0);
89 hash = 13 * hash + (this.qname != null ? this.qname.hashCode() : 0);
/openjdk7/jdk/test/java/rmi/MarshalledObject/compare/
H A DCompare.java65 if (made.hashCode() != read.hashCode()) {
67 "made.hashCode(){" + made.hashCode() + "} != " +
68 "read.hashCode(){" + read.hashCode() + "}"
/openjdk7/jdk/test/java/security/Identity/
H A DEqualsHashCodeContract.java28 * @summary java.security.Identity violates equals/hashCode contract
47 if ( !(i1.equals(i2)) == (i1.hashCode()==i2.hashCode()) ) {
57 if ( !((i1.equals(i3)) && (i1.hashCode()==i3.hashCode()))) {
/openjdk7/jdk/test/javax/naming/ldap/LdapName/
H A DCompareToEqualsTests.java36 * Tests for LdapName/Rdn compareTo, equals and hashCode methods.
115 if (isEquals && (name1.hashCode() != name2.hashCode())) {
116 System.out.println("name1.hashCode(): " + name1.hashCode() +
117 " name2.hashCode(): " + name2.hashCode());
118 throw new Exception("hashCode test failed for name1:" +

Completed in 127 milliseconds

1234567891011>>