@Override public OWLAnnotation getAnnotatedAnnotation(Stream<OWLAnnotation> annotations) { return new OWLAnnotationImpl(getProperty(), getValue(), Stream.concat(annotations(), annotations)); }
@Override public OWLAnnotation getAnnotatedAnnotation(Stream<OWLAnnotation> annotations) { return new OWLAnnotationImpl(getProperty(), getValue(), Stream.concat(annotations(), annotations)); }
@Override public OWLAnnotation getAnnotatedAnnotation(Stream<OWLAnnotation> annotations) { return new OWLAnnotationImpl(getProperty(), getValue(), Stream.concat(annotations(), annotations)); }
@Override public OWLAnnotation getAnnotatedAnnotation(Stream<OWLAnnotation> annotations) { return new OWLAnnotationImpl(getProperty(), getValue(), Stream.concat(annotations(), annotations)); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof OWLAnnotationImpl) { OWLAnnotationImpl other = (OWLAnnotationImpl) obj; return other.getProperty().equals(property) && other.getValue().equals(value) && other.anns.equals(anns); } if (obj instanceof OWLAnnotation) { OWLAnnotation other = (OWLAnnotation) obj; return other.getProperty().equals(property) && other.getValue().equals(value) && other.getAnnotations().equals(getAnnotations()); } return false; }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLAnnotation other = (OWLAnnotation) object; int diff = getProperty().compareTo(other.getProperty()); if (diff != 0) { return diff; } else { return getValue().compareTo(other.getValue()); } }
public static void serialize(SerializationStreamWriter streamWriter, OWLAnnotationImpl instance) throws SerializationException { streamWriter.writeObject(instance.getProperty()); streamWriter.writeObject(instance.getValue()); CustomFieldSerializerUtil.serializeSet(instance.getAnnotations(), streamWriter); }
@Override protected int compareObjectOfSameType(OWLObject object) { OWLAnnotation other = (OWLAnnotation) object; int diff = getProperty().compareTo(other.getProperty()); if (diff != 0) { return diff; } else { return getValue().compareTo(other.getValue()); } }
protected int compareObjectOfSameType(OWLObject object) { OWLAnnotation other = (OWLAnnotation) object; int diff = getProperty().compareTo(other.getProperty()); if (diff != 0) { return diff; } else { return getValue().compareTo(other.getValue()); } }