All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.objectos.jabuticava.serasa.relato.factoring.RegistroSinteticoBuilderPojo Maven / Gradle / Ivy

The newest version!
package br.com.objectos.jabuticava.serasa.relato.factoring;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.annotation.Generated;

@Generated({
    "br.com.objectos.way.pojo.compiler.PojoCompiler",
    "br.com.objectos.way.pojo.plugin.ListPlugin",
    "br.com.objectos.way.pojo.plugin.StandardBuilderPropertyAction"
})
final class RegistroSinteticoBuilderPojo implements RegistroSinteticoBuilder, RegistroSinteticoBuilder.RegistroSinteticoBuilderRegistro, RegistroSinteticoBuilder.RegistroSinteticoBuilderErroList {
  private String registro;

  private List erroList;

  public RegistroSinteticoBuilderPojo() {
  }

  @Override
  public RegistroSintetico build() {
    return new RegistroSinteticoPojo(this);
  }

  @Override
  public RegistroSinteticoBuilder.RegistroSinteticoBuilderRegistro registro(String registro) {
    if (registro == null) {
      throw new NullPointerException();
    }
    this.registro = registro;
    return this;
  }

  String ___get___registro() {
    return registro;
  }

  @Override
  public RegistroSinteticoBuilder.RegistroSinteticoBuilderErroList erroList(List erroList) {
    if (erroList == null) {
      throw new NullPointerException();
    }
    this.erroList = erroList;
    return this;
  }

  List ___get___erroList() {
    return erroList;
  }

  @Override
  public RegistroSinteticoBuilder.RegistroSinteticoBuilderErroList erroList(Erro... elements) {
    if (elements == null) {
      throw new NullPointerException();
    }
    List erroList = new ArrayList<>(elements.length);
    for (int i = 0; i < elements.length; i++) {
      Erro e = elements[i];
      if (e == null) {
        throw new NullPointerException();
      }
      erroList.add(e);
    }
    this.erroList = Collections.unmodifiableList(erroList);
    return this;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy