Joined June 2012
·

Jose Llarena

London, UK
·
·

Hi Rascio,

You dont say why you dont like it so not sure how to respond to that. I looked at project lombok and indeed its a terser way of achieving the same effect (thought its scope its larger than this simple trick). The benefit of the approach above is that it is dead simple and under your control, plus you have one less jar dependency to worry about.

The benefit is that you dont have to implement hashCode, equals or toString for new classes, which is one of the (many) reasons java is more verbose than other languages.

Achievements
130 Karma
6,669 Total ProTip Views
Interests & Skills