net.zerobuilder.compiler.generate.GeneratorInput Maven / Gradle / Ivy
package net.zerobuilder.compiler.generate;
import net.zerobuilder.compiler.generate.DtoGoalDescription.GoalDescription;
import java.util.List;
import static java.util.Collections.unmodifiableList;
public final class GeneratorInput {
public final List validGoals;
public final DtoBuildersContext.BuildersContext buildersContext;
private GeneratorInput(DtoBuildersContext.BuildersContext buildersContext, List validGoals) {
this.validGoals = validGoals;
this.buildersContext = buildersContext;
}
public static GeneratorInput create(DtoBuildersContext.BuildersContext buildersContext, List extends GoalDescription> goalDescriptions) {
return new GeneratorInput(buildersContext, unmodifiableList(goalDescriptions));
}
}