Fluent Setters

What are Fluent Setters?

Lately I’ve been making all my setters in bean classes fluent, meaning they return this object and can be chained together.

Take the following bean which exposes a lot of fields.

In order to use this class with it’s default constructor we have to initialize it and then can call all the setters on the object.

Continue reading “Fluent Setters”