@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 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()); }