io.polaris.builder.code.config.CodeGroupBuilder Maven / Gradle / Ivy
package io.polaris.builder.code.config;
import java.util.*;
import java.util.function.Supplier;
/**
* @author Qt
* @since 1.8
*/
public class CodeGroupBuilder {
private final CodeEnvBuilder envBuilder;
private final CodeGroup target;
public CodeGroupBuilder(CodeEnvBuilder envBuilder, CodeGroup target) {
this.envBuilder = envBuilder;
this.target = target;
}
public CodeGroup build() {
return target;
}
public CodeEnvBuilder end() {
return envBuilder;
}
public CodeGroupBuilder templates(List templates) {
target.setTemplates(templates);
return this;
}
public CodeGroupBuilder tables(List tables) {
target.setTables(tables);
return this;
}
public CodeGroupBuilder property(Map property) {
target.setProperty(property);
return this;
}
public CodeGroupBuilder property(Supplier