Home | History | Annotate | Download | only in objects

Lines Matching refs:obj2

285    * @param obj2 Object to compare this to
291 public boolean equals(XObject obj2)
297 int t = obj2.getType();
301 return obj2.equals(this);
306 return obj2.bool() == bool();
310 return obj2.num() == num();
319 return xstr().equals(obj2.xstr());
328 * @param obj2 the object to compare this <code>String</code> against.
334 public boolean equals(String obj2) {
335 return str().equals(obj2);
344 * @param obj2 the object to compare this <code>String</code>
351 public boolean equals(XMLString obj2)
353 if (obj2 != null) {
354 if (!obj2.hasString()) {
355 return obj2.equals(str());
357 return str().equals(obj2.toString());
369 * @param obj2 the object to compare this <code>String</code>
376 public boolean equals(Object obj2)
379 if (null == obj2)
385 else if (obj2 instanceof XNodeSet)
386 return obj2.equals(this);
387 else if(obj2 instanceof XNumber)
388 return obj2.equals(this);
390 return str().equals(obj2.toString());