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

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

package hydra.langs.owl.syntax;

import java.io.Serializable;

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy