
br.com.objectos.schema.info.SchemaInfoBuilderPojo Maven / Gradle / Ivy
package br.com.objectos.schema.info;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.annotation.Generated;
@Generated({
"br.com.objectos.pojo.compiler.PojoCompiler",
"br.com.objectos.pojo.plugin.ListPlugin",
"br.com.objectos.pojo.plugin.StandardBuilderPropertyAction"
})
final class SchemaInfoBuilderPojo implements SchemaInfoBuilder, SchemaInfoBuilder.SchemaInfoBuilderSchemaName, SchemaInfoBuilder.SchemaInfoBuilderTableInfoList {
private SchemaName schemaName;
private List extends TableInfo> tableInfoList;
public SchemaInfoBuilderPojo() {
}
@Override
public SchemaInfo build() {
return new SchemaInfoPojo(this);
}
@Override
public SchemaInfoBuilder.SchemaInfoBuilderSchemaName schemaName(SchemaName schemaName) {
if (schemaName == null) {
throw new NullPointerException();
}
this.schemaName = schemaName;
return this;
}
SchemaName ___get___schemaName() {
return schemaName;
}
@Override
public SchemaInfoBuilder.SchemaInfoBuilderTableInfoList tableInfoList(List extends TableInfo> tableInfoList) {
if (tableInfoList == null) {
throw new NullPointerException();
}
this.tableInfoList = tableInfoList;
return this;
}
List extends TableInfo> ___get___tableInfoList() {
return tableInfoList;
}
@Override
public SchemaInfoBuilder.SchemaInfoBuilderTableInfoList tableInfoList(TableInfo... elements) {
if (elements == null) {
throw new NullPointerException();
}
List tableInfoList = new ArrayList<>(elements.length);
for (int i = 0; i < elements.length; i++) {
TableInfo e = elements[i];
if (e == null) {
throw new NullPointerException();
}
tableInfoList.add(e);
}
this.tableInfoList = Collections.unmodifiableList(tableInfoList);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy