Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Android
- AWS
- VisualStudio
- 인증문제해결
- bitbucket
- 예제
- Invalid credentials
- 개발환경설정
- 설정
- sourcetree
- react-native
- flutter
- Route53
- 디버깅
- 데이터바인딩
- aPK
- not working
- 리액트 네이티브
- git인증
- 플러터
- react
- liveData
- 안됨
- 뒤로가기 안됨
- buildTypes
- EC2
- WPF
- 리액트
- 안드로이드
- navController
Archives
- Today
- Total
물에 살고싶은 개발자
[Lombok] @Builder 와 Builder패턴 본문
일단 빌더패턴에 대해 알아야 한다
링크를 참고 : http://seotory.tistory.com/29 , http://donxu.tistory.com/entry/Builder-Pattern%EB%B9%8C%EB%8D%94-%ED%8C%A8%ED%84%B4
Lombok에 @Builder를 사용하면
@Builder public class Entity<T> { private T body; }
이런 클래스가 있다고 할때
Entity<String> entity = Entity<String>builder().body("body").build()
이 코드로 생성할수 있게 해준다.
즉 다른게 아닌 클래스의 멤버변수만을 갖고 빌더패턴을 적용시켜 주는것이다.
영어가 된다면 공식홈을 보자
Comments