hydra.langs.owl.syntax.InverseFunctionalObjectProperty Maven / Gradle / Ivy
package hydra.langs.owl.syntax;
import java.io.Serializable;
public class InverseFunctionalObjectProperty implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/owl/syntax.InverseFunctionalObjectProperty");
public final java.util.List annotations;
public final hydra.langs.owl.syntax.ObjectPropertyExpression property;
public InverseFunctionalObjectProperty (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 InverseFunctionalObjectProperty)) {
return false;
}
InverseFunctionalObjectProperty o = (InverseFunctionalObjectProperty) (other);
return annotations.equals(o.annotations) && property.equals(o.property);
}
@Override
public int hashCode() {
return 2 * annotations.hashCode() + 3 * property.hashCode();
}
public InverseFunctionalObjectProperty withAnnotations(java.util.List annotations) {
return new InverseFunctionalObjectProperty(annotations, property);
}
public InverseFunctionalObjectProperty withProperty(hydra.langs.owl.syntax.ObjectPropertyExpression property) {
return new InverseFunctionalObjectProperty(annotations, property);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy