hydra.langs.scala.meta.Defn_ExtensionGroup Maven / Gradle / Ivy
package hydra.langs.scala.meta;
import java.io.Serializable;
public class Defn_ExtensionGroup implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/scala/meta.Defn.ExtensionGroup");
public final java.util.List tparams;
public final java.util.List> parmss;
public final hydra.langs.scala.meta.Stat body;
public Defn_ExtensionGroup (java.util.List tparams, java.util.List> parmss, hydra.langs.scala.meta.Stat body) {
this.tparams = tparams;
this.parmss = parmss;
this.body = body;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Defn_ExtensionGroup)) {
return false;
}
Defn_ExtensionGroup o = (Defn_ExtensionGroup) (other);
return tparams.equals(o.tparams) && parmss.equals(o.parmss) && body.equals(o.body);
}
@Override
public int hashCode() {
return 2 * tparams.hashCode() + 3 * parmss.hashCode() + 5 * body.hashCode();
}
public Defn_ExtensionGroup withTparams(java.util.List tparams) {
return new Defn_ExtensionGroup(tparams, parmss, body);
}
public Defn_ExtensionGroup withParmss(java.util.List> parmss) {
return new Defn_ExtensionGroup(tparams, parmss, body);
}
public Defn_ExtensionGroup withBody(hydra.langs.scala.meta.Stat body) {
return new Defn_ExtensionGroup(tparams, parmss, body);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy