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

net.karneim.pojobuilder.model.FactoryMethodParameterM 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 FactoryMethodParameterM implements WriteAccess, Positional {

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

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

  public int getPos() {
    return pos;
  }

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

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

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

  public String getName() {
    return name;
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy