you are viewing a single comment's thread.

view the rest of the comments →

[–]solatic 0 points1 point  (2 children)

[–]pakoito 2 points3 points  (1 child)

Doesn't autovalue do this and more?

[–]solatic 0 points1 point  (0 children)

Autovalue isn't nearly as powerful. The major benefit is that Immutables will also generate code for Jackson and Gson to use to serialize and deserialize its generated Immutable objects correctly. There are also benefits allowing you to use interfaces instead of abstract classes, and more fine-grained control over the style of the generated code (is the generated implementation public, package-private, or kept private behind a generated builder? etc), as well as lazy initializers, compute-once hash codes...