net.sf.andromedaioc.model.beans.ConstructorArgumentModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of andromeda-ioc Show documentation
Show all versions of andromeda-ioc Show documentation
Inversion of Control Framework for Android
The newest version!
package net.sf.andromedaioc.model.beans;
public class ConstructorArgumentModel extends AbstractParameterModel {
private Integer index;
private Class> type;
public static ConstructorArgumentModelBuilder getBuilder() {
return new ConstructorArgumentModelBuilder();
}
private ConstructorArgumentModel() {
}
public Integer getIndex() {
return index;
}
private void setIndex(Integer index) {
this.index = index;
}
public Class> getType() {
return type;
}
private void setType(Class> type) {
this.type = type;
}
public static class ConstructorArgumentModelBuilder {
private ConstructorArgumentModel instance;
private ConstructorArgumentModelBuilder() {
instance = new ConstructorArgumentModel();
}
public ConstructorArgumentModelBuilder withIndex(Integer index) {
instance.setIndex(index);
return this;
}
public ConstructorArgumentModelBuilder withType(Class> type) {
instance.setType(type);
return this;
}
public ConstructorArgumentModelBuilder withValue(ValueModel value) {
instance.setValue(value);
return this;
}
public ConstructorArgumentModel build() {
return instance;
}
}
}