From 70e7bc2f952394042133b7975d0e79477ac245f1 Mon Sep 17 00:00:00 2001
From: Reinier Zwitserloot
You can annotate a class with a @Getter or @Setter annotation. Doing so is equivalent to annotating all non-static fields in that class with that annotation. @Getter/@Setter annotations on fields take precedence over the ones on classes.
- Using the AccessLevel.NONE access level simply generates nothing. It's useful only in combination with @Data or a class-wide @Getter or @Setter.
+ Using the AccessLevel.NONE access level simply generates nothing. It's useful only in combination with @Data or a class-wide @Getter or @Setter.
@Getter can also be used on enums. @Setter can't, not for a technical reason, but for a pragmatic one: Setters on enums are an extremely bad idea.
Experimental features are available in your normal lombok installation, but are not as robustly supported as lombok's main features. In particular, experimental features:
+ Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java.
+ Never write another getter or equals method again. Early access to future java features such as val, and much more.
+ Watch the 4 minute demo below to learn more!
+