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

br.com.objectos.boleto.CobrancaBuilderPojo Maven / Gradle / Ivy

The newest version!
package br.com.objectos.boleto;

import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import org.joda.time.LocalDate;

@Generated("br.com.objectos.auto.pojo.AutoPojoProcessor")
final class CobrancaBuilderPojo implements CobrancaBuilder, CobrancaBuilder.CobrancaBuilderDescricao, CobrancaBuilder.CobrancaBuilderDataProcessamento, CobrancaBuilder.CobrancaBuilderNossoNumero, CobrancaBuilder.CobrancaBuilderAceite, CobrancaBuilder.CobrancaBuilderInstrucoes, CobrancaBuilder.CobrancaBuilderInformacaoAdicional, CobrancaBuilder.CobrancaBuilderLocalPagamento, CobrancaBuilder.CobrancaBuilderNumeroDocumento {
  private String descricao;

  private LocalDate dataProcessamento;

  private String nossoNumero;

  private boolean aceite;

  private List instrucoes;

  private String informacaoAdicional;

  private String localPagamento;

  private String numeroDocumento;

  public CobrancaBuilderPojo() {
  }

  @Override
  public Cobranca build() {
    return new CobrancaPojo(this);
  }

  @Override
  public CobrancaBuilder.CobrancaBuilderDescricao descricao(String descricao) {
    if (descricao == null) {
      throw new NullPointerException();
    }
    this.descricao = descricao;
    return this;
  }

  @Override
  public CobrancaBuilder.CobrancaBuilderDataProcessamento dataProcessamento(LocalDate dataProcessamento) {
    if (dataProcessamento == null) {
      throw new NullPointerException();
    }
    this.dataProcessamento = dataProcessamento;
    return this;
  }

  @Override
  public CobrancaBuilder.CobrancaBuilderNossoNumero nossoNumero(String nossoNumero) {
    if (nossoNumero == null) {
      throw new NullPointerException();
    }
    this.nossoNumero = nossoNumero;
    return this;
  }

  @Override
  public CobrancaBuilder.CobrancaBuilderAceite aceite(boolean aceite) {
    this.aceite = aceite;
    return this;
  }

  @Override
  public CobrancaBuilder.CobrancaBuilderInstrucoes instrucoes(String... elements) {
    if (elements == null) {
      throw new NullPointerException();
    }

    List instrucoes = new ArrayList<>(elements.length);

    for (int i = 0; i < elements.length; i++) {
      String e = elements[i];
      if (e == null) {
        throw new NullPointerException();
      }
      instrucoes.add(e);
    }

    this.instrucoes = instrucoes;
    return this;
  }

  @Override
  public CobrancaBuilder.CobrancaBuilderInstrucoes instrucoes(List instrucoes) {
    if (instrucoes == null) {
      throw new NullPointerException();
    }
    this.instrucoes = instrucoes;
    return this;
  }

  @Override
  public CobrancaBuilder.CobrancaBuilderInformacaoAdicional informacaoAdicional(String informacaoAdicional) {
    if (informacaoAdicional == null) {
      throw new NullPointerException();
    }
    this.informacaoAdicional = informacaoAdicional;
    return this;
  }

  @Override
  public CobrancaBuilder.CobrancaBuilderLocalPagamento localPagamento(String localPagamento) {
    if (localPagamento == null) {
      throw new NullPointerException();
    }
    this.localPagamento = localPagamento;
    return this;
  }

  @Override
  public CobrancaBuilder.CobrancaBuilderNumeroDocumento numeroDocumento(String numeroDocumento) {
    if (numeroDocumento == null) {
      throw new NullPointerException();
    }
    this.numeroDocumento = numeroDocumento;
    return this;
  }

  String ___get___descricao() {
    return descricao;
  }

  LocalDate ___get___dataProcessamento() {
    return dataProcessamento;
  }

  String ___get___nossoNumero() {
    return nossoNumero;
  }

  boolean ___get___aceite() {
    return aceite;
  }

  List ___get___instrucoes() {
    return instrucoes;
  }

  String ___get___informacaoAdicional() {
    return informacaoAdicional;
  }

  String ___get___localPagamento() {
    return localPagamento;
  }

  String ___get___numeroDocumento() {
    return numeroDocumento;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy