Very often one has to create a number of of similar objects. Using JavaFX builders for this task instead of constructors has several advantages as we will see in this article.
In short, builders…
- are easier to read and understand
- avoid some “copy & paste”-bugs
- result in small, but simple code, if builders are reused