fluent.api.generator.builder.full.impl.PojoFixtureBuilderImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluent-api-generator-tests Show documentation
Show all versions of fluent-api-generator-tests Show documentation
Tests for fluent API generator.
They are deployed as maven plugin, which doesn't require the maven project, so they can be executed by anybody
simply by running:
mvn foundation.fluent.api:fluent-api-generator-project:run
package fluent.api.generator.builder.full.impl;
import javax.annotation.Generated;
@Generated("Generated code using /fluent/api/templates/builder/implementation.jtwig")
public final class PojoFixtureBuilderImpl implements fluent.api.generator.builder.full.PojoFixtureBuilder {
private final fluent.api.generator.setters.PojoFixture object;
public PojoFixtureBuilderImpl(fluent.api.generator.setters.PojoFixture object) {
this.object = object;
}
public PojoFixtureBuilderImpl() {
this(new fluent.api.generator.setters.PojoFixture());
}
@Override
public PojoFixtureBuilderImpl anInt(int value) {
object.setAnInt(value);
return this;
}
@Override
public PojoFixtureBuilderImpl aLong(java.lang.Long value) {
object.setaLong(value);
return this;
}
@Override
public PojoFixtureBuilderImpl aString(java.lang.String value) {
object.setaString(value);
return this;
}
@Override
public PojoFixtureBuilderImpl aLocalDate(java.time.LocalDate value) {
object.setaLocalDate(value);
return this;
}
@Override
public PojoFixtureBuilderImpl aList(java.util.List value) {
object.setaList(value);
return this;
}
@Override
public fluent.api.generator.setters.PojoFixture build() {
return object;
}
public static PojoFixtureBuilderImpl pojo(fluent.api.generator.setters.PojoFixture object) {
return new PojoFixtureBuilderImpl(object);
}
public static PojoFixtureBuilderImpl pojo() {
return new PojoFixtureBuilderImpl();
}
public static class Factory {
public PojoFixtureBuilderImpl anInt(int value) {
return PojoFixtureBuilderImpl.pojo().anInt(value);
}
public PojoFixtureBuilderImpl aLong(java.lang.Long value) {
return PojoFixtureBuilderImpl.pojo().aLong(value);
}
public PojoFixtureBuilderImpl aString(java.lang.String value) {
return PojoFixtureBuilderImpl.pojo().aString(value);
}
public PojoFixtureBuilderImpl aLocalDate(java.time.LocalDate value) {
return PojoFixtureBuilderImpl.pojo().aLocalDate(value);
}
public PojoFixtureBuilderImpl aList(java.util.List value) {
return PojoFixtureBuilderImpl.pojo().aList(value);
}
}
}