Discussion about this post

User's avatar
Hallvard Trætteberg's avatar

I miss a comment on with-methods for stepwise assembly of records, that solve the problem of swapping fields. Define some static factory methods and complement with relevant with-methods. The main advantage of builders are validation of the whole in the build method.

No posts

Ready for more?