What is the Lombok?

Asked

Viewed 1,269 times

1

What is the Lombok and how I could use it in a java class?
What are the advantages and disadvantages of handling in a java application?

1 answer

2


The Lombok is a Framework licensed MIT, can be used freely in any Java project. Its main objective is to decrease the verbosity of mapping classes JPA, DTOs e Beans for example.

Its advantage is to avoid repeating "cliche" code such as creating gets and sets for all attributes, methods equals e hashCode, toString, Construtores among others. Thus, the code becomes cleaner and clear.

One disadvantage I felt is the need to install Plugin no Intellij e Eclipse. I believe these are the IDEs currently supported only.

I recommend the use.

Sources:

  • Works normally in Netbeans as well, including without the need to install any plugin.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.