Lines Matching refs:obj2
249 * @param obj2 Object to compare this to
255 public boolean equals(XObject obj2)
260 if (XObject.CLASS_NODESET == obj2.getType())
266 return obj2.equals(this);
268 else if (XObject.CLASS_BOOLEAN == obj2.getType())
270 return bool() == obj2.bool();
272 else if (XObject.CLASS_NUMBER == obj2.getType())
274 return num() == obj2.num();
276 else if (XObject.CLASS_NODESET == obj2.getType())
278 return xstr().equals(obj2.xstr());
280 else if (XObject.CLASS_STRING == obj2.getType())
282 return xstr().equals(obj2.xstr());
284 else if (XObject.CLASS_RTREEFRAG == obj2.getType())
288 return xstr().equals(obj2.xstr());
292 return super.equals(obj2);