4 ms·
Lombok takes care of all the boiler plate code for Java mentioned in the article. Just add a @Data annotation and you will never have to see a getter/setter or
by qw 9y ago
Lombok takes care of all the boiler plate code for Java mentioned in the article. Just add a @Data annotation and you will never have to see a getter/setter or generate hashcode unless you have a special need for it. Lombok can even provide a builder, which is my preferred way of creating immutable objects.
There is also a Lombok-plugin for Intellij IDEA that enables you to use the autogenerated getters/setters in the editor.
I'm surprised that Lombok is not used more.
- mindcrime 9y agoThere is also a Lombok-plugin for Intellij IDEA Not to mention the companion plugin for Eclipse.