Hi.
The documentation is very nice and easy to understand.
We want to use FreeBuilder for a complex use case nested class design in Eclipse and Maven (incremental-build false).
I can not find an example for such a Szenario.
How would you explain or maybe there is a good documentation?
I create a Interface like this for my classes:
I get the set, remove, mutate, merge, add, clear methods.
I dont get a method java new Foo.Builder().getBarBuilder();
To take theabove linked code and do some more complex code with lists:
@FreeBuilderpublic interface Foo {
List<Bar> getBar();
static class Builder extends Foo_Builder() {}
@FreeBuilder
public interface Bar {
List<Baz> getBaz();
static class Builder extends Foo_Bar_Builder() {}
@FreeBuilder
public interface Baz{
String getBlah();
static class Builder extends Foo_Bar_Baz_Builder() {}
}
}
}
Is FreeBuilder to use with Method Chaining or Parameter?
From the examples I read i think it could be written in this way?
Foo foo = new foo.Builder()
.addBar(getBarBuilder.addBaz(bar.getBazBuilder().setBlah("Blaah1")
.addBar(getBarBuilder
.addBaz(bar.getBazBuilder().setBlah("Blaah2")
.addBaz(bar.getBazBuilder().setBlah("Blaah2")
.build();
To complete my question Why I dont get nested builder and How should i use FreeBuilder for this case?
Thanks you a lot!