@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; RelationImpl other = (RelationImpl) obj; if (element == null) { if (other.element != null) return false; } else if (!element.equals(other.element)) return false; if (vars == null) { if (other.vars != null) return false; } else if (!vars.equals(other.vars)) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Concept other = (Concept) obj; if (element == null) { if (other.element != null) return false; } else if (!element.equals(other.element)) return false; if (var == null) { if (other.var != null) return false; } else if (!var.equals(other.var)) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; BinaryRelationImpl other = (BinaryRelationImpl) obj; if (element == null) { if (other.element != null) return false; } else if (!element.equals(other.element)) return false; if (sourceVar == null) { if (other.sourceVar != null) return false; } else if (!sourceVar.equals(other.sourceVar)) return false; if (targetVar == null) { if (other.targetVar != null) return false; } else if (!targetVar.equals(other.targetVar)) return false; return true; }
@Override public boolean equals(Expr other, boolean bySyntax) { if ( other == null ) return false ; if ( this == other ) return true ; if ( ! ( other instanceof E_NotExists ) ) return false ; E_NotExists ex = (E_NotExists)other ; if ( bySyntax ) return this.getElement().equals(ex.getElement()) ; else return this.getGraphPattern().equals(ex.getGraphPattern()) ; }
@Override public boolean equals(Expr other, boolean bySyntax) { if ( other == null ) return false ; if ( this == other ) return true ; if ( ! ( other instanceof E_Exists ) ) return false ; E_Exists ex = (E_Exists)other ; if ( bySyntax ) return this.getElement().equals(ex.getElement()) ; else return this.getGraphPattern().equals(ex.getGraphPattern()) ; }