@Override public int compareTo(@Nullable OWLObject o) { if (o == null) { throw new NullPointerException("o cannot be null in a compareTo call."); } int diff = Integer.compare(typeIndex(), o.typeIndex()); if (diff != 0) { return diff; } if (o instanceof OWLDatatype) { diff = getIRI().compareTo(((OWLDatatype) o).getIRI()); } return diff; }
@Override public int compareTo(@Nullable OWLObject o) { checkNotNull(o); assert o != null; int diff = Integer.compare(typeIndex(), o.typeIndex()); if (diff != 0) { return diff; } return compareIterators(components().iterator(), o.components().iterator()); }
@Override public int compareTo(@Nullable OWLObject o) { checkNotNull(o); assert o != null; int diff = Integer.compare(typeIndex(), o.typeIndex()); if (diff != 0) { return diff; } return compareIterators(components().iterator(), o.components().iterator()); }
@Override public int compareTo(@Nullable OWLObject o) { checkNotNull(o); assert o != null; int diff = Integer.compare(typeIndex(), o.typeIndex()); if (diff != 0) { return diff; } return compareIterators(components().iterator(), o.components().iterator()); }
@Override public int compareTo(@Nullable OWLObject o) { checkNotNull(o); assert o != null; int diff = Integer.compare(typeIndex(), o.typeIndex()); if (diff != 0) { return diff; } return compareIterators(components().iterator(), o.components().iterator()); }
@Override public int compareTo(@Nullable OWLObject o) { if (o == null) { throw new NullPointerException("o cannot be null in a compareTo call."); } int diff = Integer.compare(typeIndex(), o.typeIndex()); if (diff != 0) { return diff; } if (o instanceof OWLDatatype) { diff = getIRI().compareTo(((OWLDatatype) o).getIRI()); } return diff; }
@Override public int compareTo(@Nullable OWLObject o) { if (o == null) { throw new NullPointerException("o cannot be null in a compareTo call."); } int diff = Integer.compare(typeIndex(), o.typeIndex()); if (diff != 0) { return diff; } if (o instanceof OWLDatatype) { diff = getIRI().compareTo(((OWLDatatype) o).getIRI()); } return diff; }
@Override public int compareTo(@Nullable OWLObject o) { if (o == null) { throw new NullPointerException("o cannot be null in a compareTo call."); } int diff = Integer.compare(typeIndex(), o.typeIndex()); if (diff != 0) { return diff; } if (o instanceof OWLDatatype) { diff = getIRI().compareTo(((OWLDatatype) o).getIRI()); } return diff; }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (obj == null) { return false; } if (!(obj instanceof OWLObject)) { return false; } OWLObject other = (OWLObject) obj; if (typeIndex() != other.typeIndex() || hashCode() != other.hashCode()) { return false; } return equalStreams(components(), other.components()); }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (obj == null) { return false; } if (!(obj instanceof OWLObject)) { return false; } OWLObject other = (OWLObject) obj; if (typeIndex() != other.typeIndex() || hashCode() != other.hashCode()) { return false; } return equalStreams(components(), other.components()); }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (obj == null) { return false; } if (!(obj instanceof OWLObject)) { return false; } OWLObject other = (OWLObject) obj; if (typeIndex() != other.typeIndex() || hashCode() != other.hashCode()) { return false; } return equalStreams(components(), other.components()); }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (obj == null) { return false; } if (!(obj instanceof OWLObject)) { return false; } OWLObject other = (OWLObject) obj; if (typeIndex() != other.typeIndex() || hashCode() != other.hashCode()) { return false; } return equalStreams(components(), other.components()); }