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

br.com.objectos.code.TestingFieldInfoBuilderPojo 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 TestingFieldInfoBuilderPojo implements TestingFieldInfoBuilder, TestingFieldInfoBuilder.TestingFieldInfoBuilderAnnotationInfoList, TestingFieldInfoBuilder.TestingFieldInfoBuilderSimpleTypeInfo, TestingFieldInfoBuilder.TestingFieldInfoBuilderName {
  private List annotationInfoList;

  private SimpleTypeInfo simpleTypeInfo;

  private String name;

  public TestingFieldInfoBuilderPojo() {
  }

  @Override
  public TestingFieldInfo build() {
    return new TestingFieldInfoPojo(this);
  }

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

  List ___get___annotationInfoList() {
    return annotationInfoList;
  }

  @Override
  public TestingFieldInfoBuilder.TestingFieldInfoBuilderAnnotationInfoList 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 TestingFieldInfoBuilder.TestingFieldInfoBuilderSimpleTypeInfo simpleTypeInfo(SimpleTypeInfo simpleTypeInfo) {
    if (simpleTypeInfo == null) {
      throw new NullPointerException();
    }
    this.simpleTypeInfo = simpleTypeInfo;
    return this;
  }

  SimpleTypeInfo ___get___simpleTypeInfo() {
    return simpleTypeInfo;
  }

  @Override
  public TestingFieldInfoBuilder.TestingFieldInfoBuilderName 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