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