br.com.objectos.cnab.TestingRemessaBuilderPojo Maven / Gradle / Ivy
The newest version!
package br.com.objectos.cnab;
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 TestingRemessaBuilderPojo implements TestingRemessaBuilder, TestingRemessaBuilder.TestingRemessaBuilderHeader, TestingRemessaBuilder.TestingRemessaBuilderCobrancaList {
private TestingRemessaHeader header;
private List cobrancaList;
public TestingRemessaBuilderPojo() {
}
@Override
public TestingRemessa build() {
return new TestingRemessaPojo(this);
}
@Override
public TestingRemessaBuilder.TestingRemessaBuilderHeader header(TestingRemessaHeader header) {
if (header == null) {
throw new NullPointerException();
}
this.header = header;
return this;
}
TestingRemessaHeader ___get___header() {
return header;
}
@Override
public TestingRemessaBuilder.TestingRemessaBuilderCobrancaList cobrancaList(List cobrancaList) {
if (cobrancaList == null) {
throw new NullPointerException();
}
this.cobrancaList = cobrancaList;
return this;
}
List ___get___cobrancaList() {
return cobrancaList;
}
@Override
public TestingRemessaBuilder.TestingRemessaBuilderCobrancaList cobrancaList(TestingCobranca... elements) {
if (elements == null) {
throw new NullPointerException();
}
List cobrancaList = new ArrayList<>(elements.length);
for (int i = 0; i < elements.length; i++) {
TestingCobranca e = elements[i];
if (e == null) {
throw new NullPointerException();
}
cobrancaList.add(e);
}
this.cobrancaList = Collections.unmodifiableList(cobrancaList);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy