use of org.javarosa.xpath.XPathException in project javarosa by opendatakit.
the class Triggerable method equals.
public boolean equals(Object o) {
if (o instanceof Triggerable) {
Triggerable t = (Triggerable) o;
if (this == t)
return true;
if (this.expr.equals(t.expr)) {
// the
try {
// resolved triggers should match...
Set<TreeReference> Atriggers = this.getTriggers();
Set<TreeReference> Btriggers = t.getTriggers();
return (Atriggers.size() == Btriggers.size()) && Atriggers.containsAll(Btriggers);
} catch (XPathException e) {
return false;
}
} else {
return false;
}
} else {
return false;
}
}
Aggregations