2 ms·
Project Lombok allows you to use annotations to create getters and setters: @Getter private String author; @Getter private String title; Or, on the cl
by organsnyder 12y ago
Project Lombok allows you to use annotations to create getters and setters:
@Getter
private String author;
@Getter
private String title;
Or, on the class, here with a fluent (non-JavaBean) API:
@Data
@Accessors(fluent = true) // experimental
public class Article {
private String author;
...
}