net.karneim.pojobuilder.model.FactoryMethodParameterM Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pojobuilder Show documentation
Show all versions of pojobuilder Show documentation
The PojoBuilder Generator is a Java 6 compliant annotation processor that generates a fluent builder class for POJOs (Plain Old Java Object)
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 + "]";
}
}