hydra.ext.fr.inria.coq.syntax.Equation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-ext Show documentation
Show all versions of hydra-ext Show documentation
Hydra language extensions in Java; models, coders, and utilities
The newest version!
// Note: this is an automatically generated file. Do not edit.
package hydra.ext.fr.inria.coq.syntax;
import java.io.Serializable;
public class Equation implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/fr/inria/coq/syntax.Equation");
public static final hydra.core.Name FIELD_NAME_PATTERN = new hydra.core.Name("pattern");
public static final hydra.core.Name FIELD_NAME_TERM = new hydra.core.Name("term");
public final java.util.List> pattern;
public final hydra.ext.fr.inria.coq.syntax.Term term;
public Equation (java.util.List> pattern, hydra.ext.fr.inria.coq.syntax.Term term) {
java.util.Objects.requireNonNull((pattern));
java.util.Objects.requireNonNull((term));
this.pattern = pattern;
this.term = term;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Equation)) {
return false;
}
Equation o = (Equation) (other);
return pattern.equals(o.pattern) && term.equals(o.term);
}
@Override
public int hashCode() {
return 2 * pattern.hashCode() + 3 * term.hashCode();
}
public Equation withPattern(java.util.List> pattern) {
java.util.Objects.requireNonNull((pattern));
return new Equation(pattern, term);
}
public Equation withTerm(hydra.ext.fr.inria.coq.syntax.Term term) {
java.util.Objects.requireNonNull((term));
return new Equation(pattern, term);
}
}