All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hydra.langs.owl.syntax.AnnotationPropertyDomain Maven / Gradle / Ivy

package hydra.langs.owl.syntax;

import java.io.Serializable;

public class AnnotationPropertyDomain implements Serializable {
  public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/owl/syntax.AnnotationPropertyDomain");
  
  public final java.util.List annotations;
  
  public final hydra.langs.owl.syntax.AnnotationProperty property;
  
  public final hydra.langs.rdf.syntax.Iri iri;
  
  public AnnotationPropertyDomain (java.util.List annotations, hydra.langs.owl.syntax.AnnotationProperty property, hydra.langs.rdf.syntax.Iri iri) {
    this.annotations = annotations;
    this.property = property;
    this.iri = iri;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof AnnotationPropertyDomain)) {
      return false;
    }
    AnnotationPropertyDomain o = (AnnotationPropertyDomain) (other);
    return annotations.equals(o.annotations) && property.equals(o.property) && iri.equals(o.iri);
  }
  
  @Override
  public int hashCode() {
    return 2 * annotations.hashCode() + 3 * property.hashCode() + 5 * iri.hashCode();
  }
  
  public AnnotationPropertyDomain withAnnotations(java.util.List annotations) {
    return new AnnotationPropertyDomain(annotations, property, iri);
  }
  
  public AnnotationPropertyDomain withProperty(hydra.langs.owl.syntax.AnnotationProperty property) {
    return new AnnotationPropertyDomain(annotations, property, iri);
  }
  
  public AnnotationPropertyDomain withIri(hydra.langs.rdf.syntax.Iri iri) {
    return new AnnotationPropertyDomain(annotations, property, iri);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy