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

net.karneim.pojobuilder.model.ConstructorParameterM Maven / Gradle / Ivy

Go to download

The PojoBuilder Generator is a Java 6 compliant annotation processor that generates a fluent builder class for POJOs (Plain Old Java Object)

There is a newer version: 4.3.0
Show newest version
package net.karneim.pojobuilder.model;

public class ConstructorParameterM implements WriteAccess, Positional {

  private int pos;
  private boolean varArgs;
  private String name;

  public ConstructorParameterM(int pos) {
    this.pos = pos;
  }

  public int getPos() {
    return pos;
  }

  @Override
  public boolean isVarArgs() {
    return varArgs;
  }

  @Override
  public Type getType() {
    return Type.CONSTRUCTOR;
  }

  public ConstructorParameterM withVarArgs(boolean varArgs) {
    this.varArgs = varArgs;
    return this;
  }

  public String getName() {
    return name;
  }

  public ConstructorParameterM withName(String name) {
    this.name = name;
    return this;
  }

  @Override
  public String toString() {
    return "ConstructorParameterM [pos=" + pos + ", varArgs=" + varArgs + ", name=" + name + "]";
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy