Java builders

So it’s time to scrutinize a builder pattern. There are bunch of options to implement builder pattern in Java:

All of these variants have been examined in Java builders GitHub project.

The winners are (and this a tough IMHO):

But do not forget about AutoValue because it’s backed by Google itself.

Tags:
comments powered by Disqus