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:
@@ -26,8 +26,22 @@ public class NodeListImpl implements NodeList {
|
||||
// instantiated from JNI or Document.createAttribute()
|
||||
private NodeListImpl() {}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (!(o instanceof NodeListImpl))
|
||||
return false;
|
||||
else
|
||||
return (XPCOM_equals(o));
|
||||
}
|
||||
|
||||
public int hashCode(){
|
||||
return XPCOM_hashCode();
|
||||
}
|
||||
|
||||
public native int getLength();
|
||||
public native Node item(int index);
|
||||
|
||||
protected native void finalize();
|
||||
|
||||
private native boolean XPCOM_equals(Object o);
|
||||
private native int XPCOM_hashCode();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user