lombok Annotations in Java

Sr NoAnnotationExplanation
1@Gettergetter annotation is used to generate the get methods on Java entities.
2@Settersetter annotation is used to generate the set methods on Java entities.
3@DataData annotation is the combination of @Setter (for non final fields) @Getter @ToString @NoArgsConstructor @RequiredArgsConstructor
4@RequiredArgsConstructorGenerate a constructor with an argument for all fields that are marked as final or are marked as @NonNull and not initialized where they are declared.
5@NonNull
6@NonArgsConstructor
7@AllArgsConstructor
8@Slf4j
9@Builder

Author: Susheel kumar

Leave a Reply

Your email address will not be published. Required fields are marked *