Lines Matching defs:obj2
251 * @param obj2 Object to compare this to
257 public boolean equals(XObject obj2)
262 if (XObject.CLASS_NODESET == obj2.getType())
268 return obj2.equals(this);
270 else if (XObject.CLASS_BOOLEAN == obj2.getType())
272 return bool() == obj2.bool();
274 else if (XObject.CLASS_NUMBER == obj2.getType())
276 return num() == obj2.num();
278 else if (XObject.CLASS_NODESET == obj2.getType())
280 return xstr().equals(obj2.xstr());
282 else if (XObject.CLASS_STRING == obj2.getType())
284 return xstr().equals(obj2.xstr());
286 else if (XObject.CLASS_RTREEFRAG == obj2.getType())
290 return xstr().equals(obj2.xstr());
294 return super.equals(obj2);