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

br.com.objectos.way.code.EnumInfoBuilderPojo Maven / Gradle / Ivy

There is a newer version: 0.6.0
Show newest version
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"
})
final class EnumInfoBuilderPojo implements EnumInfoBuilder, EnumInfoBuilder.EnumInfoBuilderEnumConstantInfoList {
  private List enumConstantInfoList;

  public EnumInfoBuilderPojo() {
  }

  @Override
  public EnumInfo build() {
    return new EnumInfoPojo(this);
  }

  @Override
  public EnumInfoBuilder.EnumInfoBuilderEnumConstantInfoList enumConstantInfoList(List enumConstantInfoList) {
    if (enumConstantInfoList == null) {
      throw new NullPointerException();
    }
    this.enumConstantInfoList = enumConstantInfoList;
    return this;
  }

  List ___get___enumConstantInfoList() {
    return enumConstantInfoList;
  }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy