This is a navigation page for list of Project Lombok Tutorials, each and every example that is listed here is delomboked using maven plugin to verify Lombok generated code.
Project Lombok is a mature java library that plugs into your editor or IDE like eclipse, STS, IntelliJ etc, also can plugs into build tools like maven, gradle, ant etc. Lombok library helps your IDE to ignore generating boiler plate code for your pojo classes. And this is done during compile time.
Lombok Tutorials + Examples
1. A basic java lombok maven example with eclipse
An example to setup Lombok in your IDE and a simple maven example for testing setup.
2. Lombok @Getter @Setter and lazy getters examples
Examples to demonstrate Lombok @Getter and @Setter.
3. Lombok @NoArgsConstructor examples
Examples to demonstrate Lombok @NoArgsConstructor.
4. Lombok @AllArgsConstructor examples
Examples to demonstrate Lombok @AllArgsConstructor.
5. Lombok @RequiredArgsConstructor examples
Tutorial to demonstrate Lombok @RequiredArgsConstructor with examples.
6. Lombok @EqualsAndHashCode examples
Tutorial to demonstrate Lombok @EqualsAndHashCode with examples.
7. Lombok @ToString examples
Tutorial to demonstrate Lombok @ToString with examples.
8. Lombok @Accessors Examples
Examples to demonstrate Lombok @Accessors.
9. Lombok @NonNull annotation Examples
Examples to demonstrate Lombok @NonNull.
10. Lombok @Builder Examples
Tutorial to demonstrate Lombok @Builder with examples.
11. Lombok Builder default values Examples
Tutorial to demonstrate Lombok @Builder.Default with examples.
12. Lombok @Singular Examples with Builders
Examples to demonstrate Lombok @Singular with Builder pattern.
13. Lombok @Data annotation examples
Examples to demonstrate Lombok @Data annotation.
14. Lombok @Value annotation Examples
Examples to demonstrate Lombok @Value annotation.
15. Lombok @Slf4j Examples
Tutorial to demonstrate Lombok @Slfl4j annotation for logging with examples.
16. Lombok + Spring Boot Example
A simple Spring boot example to start working with Lombok.
17. Delomboking – delombok maven configuration Example
Configuration to delombok your lomboked code using maven plugin.
Lombok being a matured tool with huge adoption, it saves a significant amount of development time by generating commonly used boiler plate code for POJOs, but it tightly depends on java compiler for annotation processing, you must be aware that upgrading your compiler might break your code.