hydra.langs.scala.meta.Data_Apply Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-java Show documentation
Show all versions of hydra-java Show documentation
The Hydra language for strongly-typed transformations
// Note: this is an automatically generated file. Do not edit.
package hydra.langs.scala.meta;
import java.io.Serializable;
public class Data_Apply implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/langs/scala/meta.Data.Apply");
public static final hydra.core.Name FIELD_NAME_FUN = new hydra.core.Name("fun");
public static final hydra.core.Name FIELD_NAME_ARGS = new hydra.core.Name("args");
public final hydra.langs.scala.meta.Data fun;
public final java.util.List args;
public Data_Apply (hydra.langs.scala.meta.Data fun, java.util.List args) {
java.util.Objects.requireNonNull((fun));
java.util.Objects.requireNonNull((args));
this.fun = fun;
this.args = args;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Data_Apply)) {
return false;
}
Data_Apply o = (Data_Apply) (other);
return fun.equals(o.fun) && args.equals(o.args);
}
@Override
public int hashCode() {
return 2 * fun.hashCode() + 3 * args.hashCode();
}
public Data_Apply withFun(hydra.langs.scala.meta.Data fun) {
java.util.Objects.requireNonNull((fun));
return new Data_Apply(fun, args);
}
public Data_Apply withArgs(java.util.List args) {
java.util.Objects.requireNonNull((args));
return new Data_Apply(fun, args);
}
}