allow incremental building of config model

This commit is contained in:
Jonathan Shook 2021-12-20 10:04:13 -06:00
parent 5aa940cbb7
commit 0777048002

View File

@ -23,6 +23,9 @@ public class ConfigModel implements NBConfigModel {
public static ConfigModel of(Class<?> ofType, Param<?>... params) {
return new ConfigModel(ofType, params);
}
public static ConfigModel of(Class<?> ofType) {
return new ConfigModel(ofType);
}
public <T> ConfigModel add(Param<T> param) {
this.params.add(param);