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

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

package hydra.langs.owl.syntax;

import java.io.Serializable;

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy