@Override protected int compareObjectOfSameType(OWLObject object) { return individual.compareTo(((SWRLIndividualArgument) object) .getIndividual()); } }
@Override protected int compareObjectOfSameType(OWLObject object) { return individual.compareTo(((SWRLIndividualArgument) object).getIndividual()); } }
protected int compareObjectOfSameType(OWLObject object) { return individual.compareTo(((SWRLIndividualArgument) object).getIndividual()); } }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLObjectHasValue other = (OWLObjectHasValue) object; int diff = getProperty().compareTo(other.getProperty()); if (diff != 0) { return diff; } return value.compareTo(other.getFiller()); }
protected int compareObjectOfSameType(OWLObject object) { OWLClassAssertionAxiom otherAx = (OWLClassAssertionAxiom) object; int diff = getIndividual().compareTo(otherAx.getIndividual()); if (diff != 0) { return diff; } else { return getClassExpression().compareTo(otherAx.getClassExpression()); } }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLClassAssertionAxiom otherAx = (OWLClassAssertionAxiom) object; int diff = getIndividual().compareTo(otherAx.getIndividual()); if (diff != 0) { return diff; } else { return getClassExpression().compareTo(otherAx.getClassExpression()); } } }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLClassAssertionAxiom otherAx = (OWLClassAssertionAxiom) object; int diff = getIndividual().compareTo(otherAx.getIndividual()); if (diff != 0) { return diff; } else { return getClassExpression().compareTo(otherAx.getClassExpression()); } } }
final protected int compareObjectOfSameType(OWLObject object) { OWLPropertyAssertionAxiom other = (OWLPropertyAssertionAxiom) object; int diff = subject.compareTo(other.getSubject()); if (diff != 0) { return diff; } diff = property.compareTo(other.getProperty()); if (diff != 0) { return diff; } return object.compareTo(other.getObject()); } }
@Override final protected int compareObjectOfSameType(OWLObject o) { OWLPropertyAssertionAxiom<?,?> other = (OWLPropertyAssertionAxiom<?,?>) o; int diff = subject.compareTo(other.getSubject()); if (diff != 0) { return diff; } diff = property.compareTo(other.getProperty()); if (diff != 0) { return diff; } return o.compareTo(other.getObject()); } }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLPropertyAssertionAxiom<?, ?> other = (OWLPropertyAssertionAxiom<?, ?>) object; int diff = subject.compareTo(other.getSubject()); if (diff != 0) { return diff; } diff = property.compareTo(other.getProperty()); if (diff != 0) { return diff; } return o.compareTo(other.getObject()); } }