Implemented equals and hashCode for NodeList and DOMImplementation

git-svn-id: svn://10.0.0.236/trunk@44423 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akhil.arora%sun.com
1999-08-25 01:28:48 +00:00
parent 03476e8a3c
commit 09bb604ee8
6 changed files with 247 additions and 12 deletions

View File

@@ -25,7 +25,21 @@ public class DOMImplementationImpl implements DOMImplementation {
// instantiated from JNI only
private DOMImplementationImpl() {}
public boolean equals(Object o) {
if (!(o instanceof NodeListImpl))
return false;
else
return (XPCOM_equals(o));
}
public int hashCode(){
return XPCOM_hashCode();
}
public native boolean hasFeature(String feature, String version);
protected native void finalize();
private native boolean XPCOM_equals(Object o);
private native int XPCOM_hashCode();
}