@Override public boolean equals(Object xpathObject) { if (!(xpathObject instanceof XPathExpression)) { return false; } if (xpathObject == this) { return true; } XPathExpression xpath = (XPathExpression)xpathObject; if (xpath.getScope() != getScope()) { return false; } if (xpath.getType() != getType()) { return false; } if (getXPath() == null && xpath.getXPath() != null) { return false; } else if (getXPath() != null && !getXPath().equals(xpath.getXPath())) { return false; } return true; }
@Override public boolean equals(Object xpathObject) { if (!(xpathObject instanceof XPathExpression)) { return false; } if (xpathObject == this) { return true; } XPathExpression xpath = (XPathExpression)xpathObject; if (xpath.getScope() != getScope()) { return false; } if (xpath.getType() != getType()) { return false; } if (getXPath() == null && xpath.getXPath() != null) { return false; } else if (getXPath() != null && !getXPath().equals(xpath.getXPath())) { return false; } return true; }