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

br.com.objectos.schema.info.PrimaryKeyInfoBuilderPojo Maven / Gradle / Ivy

package br.com.objectos.schema.info;

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 PrimaryKeyInfoBuilderPojo implements PrimaryKeyInfoBuilder, PrimaryKeyInfoBuilder.PrimaryKeyInfoBuilderName, PrimaryKeyInfoBuilder.PrimaryKeyInfoBuilderKeyPartList {
  private String name;

  private List keyPartList;

  public PrimaryKeyInfoBuilderPojo() {
  }

  @Override
  public PrimaryKeyInfo build() {
    return new PrimaryKeyInfoPojo(this);
  }

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

  String ___get___name() {
    return name;
  }

  @Override
  public PrimaryKeyInfoBuilder.PrimaryKeyInfoBuilderKeyPartList keyPartList(List keyPartList) {
    if (keyPartList == null) {
      throw new NullPointerException();
    }
    this.keyPartList = keyPartList;
    return this;
  }

  List ___get___keyPartList() {
    return keyPartList;
  }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy