Autovalue

Image credit: WeGraphics

Autovalue

Autovalue or simple POJO

Intention:

Try com.google.auto.value, is it really useful?

Description:


I had a discussion about boilerplate code and its impact on the readability/component weight/unit test coverage.

Is it really useful?  
Below is listed a simple example of a bean annotated with AutoValue, which during build phase automatically entire bean + it's builder is generated with equals/hashcode/toString.

Conclusion:


In case the model is really simple it might be useful, but when it has variation of references/nulable/ or custom validation than I would say it does not bring a lot of value.

References:

Git: https://github.com/ecararus/autovalue
Documentation: https://github.com/google/auto/tree/master/value