
br.com.objectos.way.code.ParameterInfoBuilderPojo Maven / Gradle / Ivy
package br.com.objectos.way.code;
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 ParameterInfoBuilderPojo implements ParameterInfoBuilder, ParameterInfoBuilder.ParameterInfoBuilderIndex, ParameterInfoBuilder.ParameterInfoBuilderAnnotationInfoList, ParameterInfoBuilder.ParameterInfoBuilderSimpleTypeInfo, ParameterInfoBuilder.ParameterInfoBuilderName {
private Index index;
private List annotationInfoList;
private SimpleTypeInfo simpleTypeInfo;
private String name;
public ParameterInfoBuilderPojo() {
}
@Override
public ParameterInfo build() {
return new ParameterInfoPojo(this);
}
@Override
public ParameterInfoBuilder.ParameterInfoBuilderIndex index(Index index) {
if (index == null) {
throw new NullPointerException();
}
this.index = index;
return this;
}
Index ___get___index() {
return index;
}
@Override
public ParameterInfoBuilder.ParameterInfoBuilderAnnotationInfoList annotationInfoList(List annotationInfoList) {
if (annotationInfoList == null) {
throw new NullPointerException();
}
this.annotationInfoList = annotationInfoList;
return this;
}
List ___get___annotationInfoList() {
return annotationInfoList;
}
@Override
public ParameterInfoBuilder.ParameterInfoBuilderAnnotationInfoList 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 ParameterInfoBuilder.ParameterInfoBuilderSimpleTypeInfo simpleTypeInfo(SimpleTypeInfo simpleTypeInfo) {
if (simpleTypeInfo == null) {
throw new NullPointerException();
}
this.simpleTypeInfo = simpleTypeInfo;
return this;
}
SimpleTypeInfo ___get___simpleTypeInfo() {
return simpleTypeInfo;
}
@Override
public ParameterInfoBuilder.ParameterInfoBuilderName 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