@Override public int hashCode() { return super.hashCode(); }
@Override public boolean equals(Object obj) { if (super.equals(obj)) { if (!(obj instanceof SWRLRule)) { return false; } SWRLRule other = (SWRLRule) obj; return other.getBody().equals(body) && other.getHead().equals(head); } return false; }
@Override public boolean equals(Object obj) { if(super.equals(obj)) { // superclass is responsible for null, identity, owlaxiom type and annotations if (!(obj instanceof OWLHasKeyAxiom)) { return false; } OWLHasKeyAxiom other = (OWLHasKeyAxiom) obj; return expression.equals(other.getClassExpression()) && propertyExpressions.equals(other.getPropertyExpressions()); } return false; } }
@Override public int hashCode() { return super.hashCode(); }
public boolean equals(Object obj) { if (super.equals(obj)) { if (!(obj instanceof OWLPropertyAssertionAxiom)) { return false; } OWLPropertyAssertionAxiom other = (OWLPropertyAssertionAxiom) obj; return other.getSubject().equals(subject) && other.getProperty().equals(property) && other.getObject().equals( object); } return false; }
@Override public int hashCode() { return super.hashCode(); }
@Override public boolean equals(Object obj) { if (super.equals(obj)) { if (!(obj instanceof OWLPropertyAssertionAxiom)) { return false; } OWLPropertyAssertionAxiom<?,?> other = (OWLPropertyAssertionAxiom<?,?>) obj; return other.getSubject().equals(subject) && other.getProperty().equals(property) && other.getObject().equals(object); } return false; }
@Override public int hashCode() { return super.hashCode(); }