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

br.com.objectos.code.TestingParameterInfoBuilderPojo Maven / Gradle / Ivy

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

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 TestingParameterInfoBuilderPojo implements TestingParameterInfoBuilder, TestingParameterInfoBuilder.TestingParameterInfoBuilderIndex, TestingParameterInfoBuilder.TestingParameterInfoBuilderAnnotationInfoList, TestingParameterInfoBuilder.TestingParameterInfoBuilderSimpleTypeInfo, TestingParameterInfoBuilder.TestingParameterInfoBuilderName {
  private Index index;

  private List annotationInfoList;

  private SimpleTypeInfo simpleTypeInfo;

  private String name;

  public TestingParameterInfoBuilderPojo() {
  }

  @Override
  public TestingParameterInfo build() {
    return new TestingParameterInfoPojo(this);
  }

  @Override
  public TestingParameterInfoBuilder.TestingParameterInfoBuilderIndex index(Index index) {
    if (index == null) {
      throw new NullPointerException();
    }
    this.index = index;
    return this;
  }

  Index ___get___index() {
    return index;
  }

  @Override
  public TestingParameterInfoBuilder.TestingParameterInfoBuilderAnnotationInfoList annotationInfoList(List annotationInfoList) {
    if (annotationInfoList == null) {
      throw new NullPointerException();
    }
    this.annotationInfoList = annotationInfoList;
    return this;
  }

  List ___get___annotationInfoList() {
    return annotationInfoList;
  }

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

  @Override
  public TestingParameterInfoBuilder.TestingParameterInfoBuilderSimpleTypeInfo simpleTypeInfo(SimpleTypeInfo simpleTypeInfo) {
    if (simpleTypeInfo == null) {
      throw new NullPointerException();
    }
    this.simpleTypeInfo = simpleTypeInfo;
    return this;
  }

  SimpleTypeInfo ___get___simpleTypeInfo() {
    return simpleTypeInfo;
  }

  @Override
  public TestingParameterInfoBuilder.TestingParameterInfoBuilderName name(String name) {
    if (name == null) {
      throw new NullPointerException();
    }
    this.name = name;
    return this;
  }

  String ___get___name() {
    return name;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy