@Override protected int compareObjectOfSameType(@Nonnull OWLObject object) { OWLLiteral other = (OWLLiteral) object; int diff = literal.compareTo(other.getLiteral()); if (diff != 0) { return diff; } diff = datatype.compareTo(other.getDatatype()); if (diff != 0) { return diff; } return language.compareTo(other.getLang()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLLiteral other = (OWLLiteral) object; int diff = getLiteral().compareTo(other.getLiteral()); if (diff != 0) { return diff; } return datatype.compareTo(other.getDatatype()); }
protected int compareObjectOfSameType(OWLObject object) { OWLTypedLiteral other = (OWLTypedLiteral) object; int diff = getLiteral().compareTo(other.getLiteral()); if(diff != 0) { return diff; } return datatype.compareTo(other.getDatatype()); } }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLLiteral other = (OWLLiteral) object; int diff = getLiteral().compareTo(other.getLiteral()); if (diff != 0) { return diff; } return datatype.compareTo(other.getDatatype()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLLiteral other = (OWLLiteral) object; int diff = getLiteral().compareTo(other.getLiteral()); if (diff != 0) { return diff; } return datatype.compareTo(other.getDatatype()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLLiteral other = (OWLLiteral) object; int diff = getLiteral().compareTo(other.getLiteral()); if (diff != 0) { return diff; } int compareTo = datatype.compareTo(other.getDatatype()); if (compareTo != 0) { return compareTo; } return Float.compare(literal, other.parseFloat()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLLiteral other = (OWLLiteral) object; int diff = getLiteral().compareTo(other.getLiteral()); if (diff != 0) { return diff; } diff = datatype.compareTo(other.getDatatype()); if (diff != 0) { return diff; } return lang.compareTo(other.getLang()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLLiteral other = (OWLLiteral) object; int diff = getLiteral().compareTo(other.getLiteral()); if (diff != 0) { return diff; } return datatype.compareTo(other.getDatatype()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLLiteral other = (OWLLiteral) object; int diff = getLiteral().compareTo(other.getLiteral()); if (diff != 0) { return diff; } int compareTo = datatype.compareTo(other.getDatatype()); if (compareTo != 0) { return compareTo; } return Double.compare(literal, other.parseDouble()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLLiteral other = (OWLLiteral) object; int diff = literal.get().compareTo(other.getLiteral()); if (diff != 0) { return diff; } diff = datatype.compareTo(other.getDatatype()); if (diff != 0) { return diff; } return language.compareTo(other.getLang()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLLiteral other = (OWLLiteral) object; int diff = getLiteral().compareTo(other.getLiteral()); if (diff != 0) { return diff; } int compareTo = datatype.compareTo(other.getDatatype()); if (compareTo != 0) { return compareTo; } return Integer.compare(literal, other.parseInteger()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLDatatypeRestriction other = (OWLDatatypeRestriction) object; int diff = datatype.compareTo(other.getDatatype()); if (diff != 0) { return diff; } return compareSets(facetRestrictions, other.getFacetRestrictions()); } }
protected int compareObjectOfSameType(OWLObject object) { OWLDatatypeRestriction other = (OWLDatatypeRestriction) object; int diff = datatype.compareTo(other.getDatatype()); if (diff != 0) { return diff; } return compareSets(facetRestrictions, other.getFacetRestrictions()); } }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLDatatypeRestriction other = (OWLDatatypeRestriction) object; int diff = datatype.compareTo(other.getDatatype()); if (diff != 0) { return diff; } return compareSets(facetRestrictions, other.getFacetRestrictions()); } }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLLiteral other = (OWLLiteral) object; int diff = getLiteral().compareTo(other.getLiteral()); if (diff != 0) { return diff; } diff = getDatatype().compareTo(other.getDatatype()); if (diff != 0) { return diff; } return lang.compareTo(other.getLang()); }
protected int compareObjectOfSameType(OWLObject object) { OWLLiteral other = (OWLLiteral) object; int diff = getLiteral().compareTo(other.getLiteral()); if (diff != 0) { return diff; } diff = getDatatype().compareTo(other.getDatatype()); if (diff != 0) { return diff; } return getLang().compareTo(other.getLang()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLLiteral other = (OWLLiteral) object; int diff = getLiteral().compareTo(other.getLiteral()); if (diff != 0) { return diff; } int compareTo = datatype.compareTo(other.getDatatype()); if (compareTo != 0) { return compareTo; } return Boolean.compare(literal, other.parseBoolean()); }
protected int compareObjectOfSameType(OWLObject object) { OWLDatatypeDefinitionAxiom other = (OWLDatatypeDefinitionAxiom) object; int diff = getDatatype().compareTo(other.getDatatype()); if(diff != 0) { return diff; } return getDataRange().compareTo(other.getDataRange()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLDatatypeDefinitionAxiom other = (OWLDatatypeDefinitionAxiom) object; int diff = getDatatype().compareTo(other.getDatatype()); if (diff != 0) { return diff; } return getDataRange().compareTo(other.getDataRange()); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLDatatypeDefinitionAxiom other = (OWLDatatypeDefinitionAxiom) object; int diff = getDatatype().compareTo(other.getDatatype()); if (diff != 0) { return diff; } return getDataRange().compareTo(other.getDataRange()); }