Skip to content

Commit

Permalink
lombok
Browse files Browse the repository at this point in the history
  • Loading branch information
이수진D/SGS 인프라플랫폼개발팀 authored and 이수진D/SGS 인프라플랫폼개발팀 committed Jul 30, 2023
1 parent 331511e commit 529c79b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions TIL/230727.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,26 @@
## Lombok
- RequiredArgsConstructor

@Getter, @Setter

@Builder

@NoArgsConstructor, @RequiredArgsConstructor, and @AllArgsConstructor
@ArgsConstructor
- @NoArgsConstructor : 매개 변수가 없는 기본 생성자를 생성
- @RequiredArgsConstructor : final, @NonNull이 있는 필드만 포함된 생성자를 생성
- @AllArgsConstructor : 모든 필드를 포함한 생성자를 생성

@Data
- @Getter : Getter를 자동으로 생성
- @Setter : Setter를 자동으로 생성
- @ToString : toString 메소드를 자동으로 생성
- @EqualsAndHashCode
- @RequiredArgsConstructor

@With

@Value


@NoArgsConstructor
@AllArgsConstructor




Expand Down

0 comments on commit 529c79b

Please sign in to comment.