Searched refs:hashCode (Results 26 - 50 of 1062) sorted by relevance

1234567891011>>

/openjdk7/jdk/test/java/util/Hashtable/
H A DHashCode.java27 * @summary Hashtable's hashCode method always returns zero(!)
36 if (m.hashCode() != 0)
37 throw new Exception("Empty Hashtable has nonzero hashCode.");
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/jaxws/
H A DBuilderHandlerMessageScope.java104 public int hashCode() { method in class:BuilderHandlerMessageScope
105 int hashCode = 19;
106 hashCode = 31 * hashCode + (policySubject == null ? 0 : policySubject.hashCode());
107 hashCode = 31 * hashCode + (message == null ? 0 : message.hashCode());
108 hashCode = 31 * hashCode
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/util/
H A DObjects.java37 public static int hashCode(final Object o) { method in class:Objects
38 return o == null ? 0 : o.hashCode();
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/utils/
H A DObjects.java37 public static int hashCode(final Object o) { method in class:Objects
38 return o == null ? 0 : o.hashCode();
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/utils/
H A DObjects.java37 public static int hashCode(final Object o) { method in class:Objects
38 return o == null ? 0 : o.hashCode();
/openjdk7/jdk/src/share/classes/com/sun/jndi/dns/
H A DDnsNameParser.java52 public int hashCode() { method in class:DnsNameParser
53 return DnsNameParser.class.hashCode() + 1;
/openjdk7/jdk/test/java/io/pathNames/win32/
H A Dbug6344646.java26 * @summary tests that Win32FileSystem.hashCode() uses
44 if (f1.hashCode() != f2.hashCode()) {
45 throw new RuntimeException("File.hashCode() for \"J\u0301\" and \"j\u0301\" should be the same");
/openjdk7/jdk/test/sun/security/util/BigInt/
H A DBigIntEqualsHashCode.java28 * @summary Verify equals()/hashCode() contract honored
40 if ( (bi1.equals(bi2)) == (bi1.hashCode()==bi2.hashCode()) )
43 throw new Exception ("FAILED equals()/hashCode() contract");
/openjdk7/langtools/test/tools/javac/generics/inference/5080917/
H A DT5080917.java38 X x = (a.hashCode() == b.hashCode()) ? a : b;
/openjdk7/jdk/test/sun/security/acl/PermissionImpl/
H A DPermissionEqualsHashCode.java28 * @summary Verify equals()/hashCode() contract honored
45 if ( (p1.equals(p2)) == (p1.hashCode()==p2.hashCode()) )
48 throw new Exception("Failed equals()/hashCode() contract");
/openjdk7/jdk/test/java/lang/
H A DHashCode.java27 * @summary Test the primitive wrappers hashCode()
51 check( new Long(x).hashCode() == (int)((long)x ^ (long)x>>>32));
52 check(Long.valueOf(x).hashCode() == (int)((long)x ^ (long)x>>>32));
53 check( new Integer(x).hashCode() == x);
54 check(Integer.valueOf(x).hashCode() == x);
55 check( new Short((short)x).hashCode() == (short) x);
56 check(Short.valueOf((short)x).hashCode() == (short) x);
57 check( new Character((char) x).hashCode() == (char) x);
58 check(Character.valueOf((char) x).hashCode() == (char) x);
59 check( new Byte((byte) x).hashCode()
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/util/
H A DXMLErrorCode.java81 public int hashCode() { method in class:XMLErrorCode
82 return fDomain.hashCode() + fKey.hashCode();
/openjdk7/corba/src/share/classes/com/sun/corba/se/spi/orb/
H A DStringPair.java45 public int hashCode() method in class:StringPair
47 return first.hashCode() ^ second.hashCode() ;
/openjdk7/jdk/src/share/classes/sun/tools/asm/
H A DNameAndTypeData.java51 public int hashCode() { method in class:NameAndTypeData
52 return field.getName().hashCode() * field.getType().hashCode();
/openjdk7/jdk/src/share/classes/javax/management/openmbean/
H A DOpenMBeanConstructorInfo.java114 * (ie: its name and signature, where the signature hashCode is calculated by a call to
115 * <tt>java.util.Arrays.asList(this.getSignature).hashCode()</tt>).
117 * This ensures that <code> t1.equals(t2) </code> implies that <code> t1.hashCode()==t2.hashCode() </code>
120 * {@link Object#hashCode() Object.hashCode()}.
125 public int hashCode(); method in interface:OpenMBeanConstructorInfo
/openjdk7/jdk/src/share/classes/javax/naming/
H A DRefAddr.java126 * @see java.lang.Object#hashCode
128 public int hashCode() { method in class:RefAddr
130 ? addrType.hashCode()
131 : addrType.hashCode() + getContent().hashCode();
/openjdk7/jdk/src/share/classes/com/sun/jdi/
H A DField.java134 int hashCode(); method in interface:Field
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/bdi/
H A DReferenceTypeSpec.java46 int hashCode(); method in interface:ReferenceTypeSpec
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/tty/
H A DWatchpointSpec.java50 public int hashCode() { method in class:WatchpointSpec
51 return refSpec.hashCode() + fieldId.hashCode() +
52 getClass().hashCode();
/openjdk7/jdk/test/java/security/UnresolvedPermission/
H A DDebugPermission0.java38 public int hashCode() { method in class:DebugPermission0
H A DDebugPermission1.java38 public int hashCode() { method in class:DebugPermission1
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/asm/
H A DImmediate.java48 public int hashCode() { method in class:Immediate
49 return value.hashCode();
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/jdi/
H A DMirrorImpl.java54 public int hashCode() { method in class:MirrorImpl
55 return vm.hashCode();
H A DVoidValueImpl.java39 public int hashCode() { method in class:VoidValueImpl
40 return type().hashCode();
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/oops/
H A DNamedFieldIdentifier.java56 public int hashCode() { method in class:NamedFieldIdentifier
57 return name.hashCode();

Completed in 150 milliseconds

1234567891011>>