hydra.langs.scala.meta.Decl_Given Maven / Gradle / Ivy
package hydra.langs.scala.meta;
import java.io.Serializable;
public class Decl_Given implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/scala/meta.Decl.Given");
public final java.util.List mods;
public final hydra.langs.scala.meta.Data_Name name;
public final java.util.List tparams;
public final java.util.List> sparams;
public final hydra.langs.scala.meta.Type decltpe;
public Decl_Given (java.util.List mods, hydra.langs.scala.meta.Data_Name name, java.util.List tparams, java.util.List> sparams, hydra.langs.scala.meta.Type decltpe) {
this.mods = mods;
this.name = name;
this.tparams = tparams;
this.sparams = sparams;
this.decltpe = decltpe;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Decl_Given)) {
return false;
}
Decl_Given o = (Decl_Given) (other);
return mods.equals(o.mods) && name.equals(o.name) && tparams.equals(o.tparams) && sparams.equals(o.sparams) && decltpe.equals(o.decltpe);
}
@Override
public int hashCode() {
return 2 * mods.hashCode() + 3 * name.hashCode() + 5 * tparams.hashCode() + 7 * sparams.hashCode() + 11 * decltpe.hashCode();
}
public Decl_Given withMods(java.util.List mods) {
return new Decl_Given(mods, name, tparams, sparams, decltpe);
}
public Decl_Given withName(hydra.langs.scala.meta.Data_Name name) {
return new Decl_Given(mods, name, tparams, sparams, decltpe);
}
public Decl_Given withTparams(java.util.List tparams) {
return new Decl_Given(mods, name, tparams, sparams, decltpe);
}
public Decl_Given withSparams(java.util.List> sparams) {
return new Decl_Given(mods, name, tparams, sparams, decltpe);
}
public Decl_Given withDecltpe(hydra.langs.scala.meta.Type decltpe) {
return new Decl_Given(mods, name, tparams, sparams, decltpe);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy