inferred / FreeBuilder

Automatic generation of the Builder pattern for Java
Apache License 2.0
838 stars 101 forks source link

Improve JavaDoc for core methods #406

Closed alicederyn closed 5 years ago

alicederyn commented 5 years ago

The two mergeFrom methods now specify what actions will be taken on each kind of property (e.g. skip defaults, append collections). The clear method now clarifies that it returns the builder, and the build method uses the term "this builder" rather than "the builder".

The new MergeAction type is responsible for making a readable set of merge actions, emitting sentences like "appending to collections, and skipping defaults and unset properties".