rigd-loxia / builder-generator

Yet another builder generator. Primary style of this generator will be fluent wither, although other styles will be supported in the future. There is support for builder chaining.
Apache License 2.0
2 stars 2 forks source link

Make the copy-of functionality optional for builders #15

Closed Zegveld closed 11 months ago

Zegveld commented 11 months ago

By making the copy-of functionality optional we can allow setters/constructor arguments without getters. Currently the getters are required to be able to generate a builder, because the copy of method is always generated. By making this a toggle we can influence the builder behavior so that it becomes possible to generate builders for classes where the getters for some fields are missing.