コード例 #1
0
 protected int compareObjectOfSameType(OWLObject object) {
   OWLAnnotationPropertyDomainAxiom other = (OWLAnnotationPropertyDomainAxiom) object;
   int diff = property.compareTo(other.getProperty());
   if (diff != 0) {
     return diff;
   }
   return domain.compareTo(other.getDomain());
 }
コード例 #2
0
 @Override
 protected int compareObjectOfSameType(OWLObject object) {
   OWLAnnotationPropertyRangeAxiom other = (OWLAnnotationPropertyRangeAxiom) object;
   int diff = property.compareTo(other.getProperty());
   if (diff != 0) {
     return diff;
   }
   return range.compareTo(other.getRange());
 }