What is "lombok"
Lombok allows you to automatically generate repetitive methods such as "gets" and "sets", "toString", "equals" and "hashcode" using annotations only (Annotations).
Example:
@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode
public class Usuario{
@Getter @Setter
private String nome;
@Getter @Setter
private String cpf;
@Getter @Setter
private String rg;
}
Where the constructor will be generated in the class with all parameters, the constructor without parameters, the toString, equals and hashcode methods and the "gets" and "sets" of the fields.
You can use Lombok in your favorite IDE or via Maven, Gradle and others.
More details: https://projectlombok.org