hydra.langs.owl.syntax.Ontology Maven / Gradle / Ivy
package hydra.langs.owl.syntax;
import java.io.Serializable;
public class Ontology implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/owl/syntax.Ontology");
public final java.util.List directImports;
public final java.util.List annotations;
public final java.util.List axioms;
public Ontology (java.util.List directImports, java.util.List annotations, java.util.List axioms) {
this.directImports = directImports;
this.annotations = annotations;
this.axioms = axioms;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Ontology)) {
return false;
}
Ontology o = (Ontology) (other);
return directImports.equals(o.directImports) && annotations.equals(o.annotations) && axioms.equals(o.axioms);
}
@Override
public int hashCode() {
return 2 * directImports.hashCode() + 3 * annotations.hashCode() + 5 * axioms.hashCode();
}
public Ontology withDirectImports(java.util.List directImports) {
return new Ontology(directImports, annotations, axioms);
}
public Ontology withAnnotations(java.util.List annotations) {
return new Ontology(directImports, annotations, axioms);
}
public Ontology withAxioms(java.util.List axioms) {
return new Ontology(directImports, annotations, axioms);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy