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

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

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

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

@Generated({
    "br.com.objectos.pojo.compiler.PojoCompiler",
    "br.com.objectos.pojo.plugin.ListPlugin",
    "br.com.objectos.pojo.plugin.SetPlugin",
    "br.com.objectos.pojo.plugin.StandardBuilderPropertyAction"
})
final class TestingMethodInfoBuilderPojo implements TestingMethodInfoBuilder, TestingMethodInfoBuilder.TestingMethodInfoBuilderAccessInfo, TestingMethodInfoBuilder.TestingMethodInfoBuilderModifierInfoSet, TestingMethodInfoBuilder.TestingMethodInfoBuilderName, TestingMethodInfoBuilder.TestingMethodInfoBuilderAnnotationInfoList, TestingMethodInfoBuilder.TestingMethodInfoBuilderReturnTypeInfo, TestingMethodInfoBuilder.TestingMethodInfoBuilderParameterInfoList, TestingMethodInfoBuilder.TestingMethodInfoBuilderVarargs {
  private AccessInfo accessInfo;

  private Set modifierInfoSet;

  private String name;

  private List annotationInfoList;

  private SimpleTypeInfo returnTypeInfo;

  private List parameterInfoList;

  private boolean varargs;

  public TestingMethodInfoBuilderPojo() {
  }

  @Override
  public TestingMethodInfo build() {
    return new TestingMethodInfoPojo(this);
  }

  @Override
  public TestingMethodInfoBuilder.TestingMethodInfoBuilderAccessInfo accessInfo(AccessInfo accessInfo) {
    if (accessInfo == null) {
      throw new NullPointerException();
    }
    this.accessInfo = accessInfo;
    return this;
  }

  AccessInfo ___get___accessInfo() {
    return accessInfo;
  }

  @Override
  public TestingMethodInfoBuilder.TestingMethodInfoBuilderModifierInfoSet modifierInfoSet(Set modifierInfoSet) {
    if (modifierInfoSet == null) {
      throw new NullPointerException();
    }
    this.modifierInfoSet = modifierInfoSet;
    return this;
  }

  Set ___get___modifierInfoSet() {
    return modifierInfoSet;
  }

  @Override
  public TestingMethodInfoBuilder.TestingMethodInfoBuilderModifierInfoSet modifierInfoSet(ModifierInfo... elements) {
    if (elements == null) {
      throw new NullPointerException();
    }
    Set modifierInfoSet = new LinkedHashSet<>(elements.length);
    for (int i = 0; i < elements.length; i++) {
      ModifierInfo e = elements[i];
      if (e == null) {
        throw new NullPointerException();
      }
      modifierInfoSet.add(e);
    }
    this.modifierInfoSet = Collections.unmodifiableSet(modifierInfoSet);
    return this;
  }

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

  String ___get___name() {
    return name;
  }

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

  List ___get___annotationInfoList() {
    return annotationInfoList;
  }

  @Override
  public TestingMethodInfoBuilder.TestingMethodInfoBuilderAnnotationInfoList 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 TestingMethodInfoBuilder.TestingMethodInfoBuilderReturnTypeInfo returnTypeInfo(SimpleTypeInfo returnTypeInfo) {
    if (returnTypeInfo == null) {
      throw new NullPointerException();
    }
    this.returnTypeInfo = returnTypeInfo;
    return this;
  }

  SimpleTypeInfo ___get___returnTypeInfo() {
    return returnTypeInfo;
  }

  @Override
  public TestingMethodInfoBuilder.TestingMethodInfoBuilderParameterInfoList parameterInfoList(List parameterInfoList) {
    if (parameterInfoList == null) {
      throw new NullPointerException();
    }
    this.parameterInfoList = parameterInfoList;
    return this;
  }

  List ___get___parameterInfoList() {
    return parameterInfoList;
  }

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

  @Override
  public TestingMethodInfoBuilder.TestingMethodInfoBuilderVarargs varargs(boolean varargs) {
    this.varargs = varargs;
    return this;
  }

  boolean ___get___varargs() {
    return varargs;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy