* 2) the name of the Resource Function
* 3) the arity of the Resource Function
*/
@Override
public boolean equals(final Object obj) {
final FunctionSignature fnSignature = getResourceFunction().getFunctionSignature();
if(obj == null) {
return false;
}
if(!(obj instanceof RestXqService)) {
return false;
}
final RestXqService other = ((RestXqService)obj);
return
other.getResourceFunction().getXQueryLocation().equals(getResourceFunction().getXQueryLocation())
&& other.getResourceFunction().getFunctionSignature().getName().equals(fnSignature.getName())
&& other.getResourceFunction().getFunctionSignature().getArgumentCount() == fnSignature.getArgumentCount();
}