Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 1.21 KB

README.md

File metadata and controls

15 lines (11 loc) · 1.21 KB

ProjectLambok

This repository is for project Lambok examples . use of annotation @Setter ,@Getter , @Data ,@NoArgsConstructor ,@AllArgsConstructor,@RequiredArgsConstructor

Project Lambok :

Project Lambok is used to reduce boiler plate code in java programs like , setters , getters .. etc . this code will be added in .class file

Here in this repo it is example of uses of annotation used by Project Lamok .

@Setter : @Setters are used to add setter methods in model class .
@Getter : @Getters are used to add getter methods in model class .
@ToString : @ToString is used to add toString() method in model class .
@EqualsAndHashCode : This method is used to add equals() and hashCode() methods in model class .
@NoArgsConstructor : This method is used to add default construcotr methods in model class .
@AllArgsConstructor : This method is used to add parameterized constructor in model class .
@RequiredArgsConstructor : This method is used to add constructor for fields needed in model class .