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