본문 바로가기 메뉴 바로가기

SdardewValley의 개발 농사

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

SdardewValley의 개발 농사

검색하기 폼
  • 분류 전체보기 (171)
    • Algorithm (2)
      • 코딩테스트 (0)
      • 정리 (2)
    • AWS (8)
    • DB (10)
      • SQL (10)
    • Programming Language (62)
      • Go (22)
      • Java (6)
      • Kotlin (17)
      • Python (2)
      • Rust (9)
      • Solidity (6)
    • Server (34)
      • Spring (34)
    • Tools (27)
      • Git (21)
      • IntelliJ (4)
      • Postman (2)
    • 개발직설 (26)
      • Design Pattern (1)
      • React (7)
      • TIL (6)
      • 졸업 프로젝트 (1)
      • 네트워크 (3)
      • 디자인 패턴 (1)
      • 기타 (6)
    • 기록 (2)
  • 방명록

개발직설/Design Pattern (1)
[Design Pattern] Builder 패턴

Builder 패턴? Builder 패턴은 생성 패턴(creational pattern)의 한 종류이다. 해당 패턴은 복잡한 객체를 생성하는데 도움을 준다. Lombok 빌더 Lombok에서는 @Builder라는 어노테이션을 통해서 빌더를 지원해준다. Book 클래스는 title, price 2개의 필드만 가지는 간단한 클래스이다. 이 클래스에 @Builder 어노테이션을 적용했을 때, 어떻게 빌더 패턴이 적용되는지 확인하겠다. public class Book { String title; Integer price; Book(String title, Integer price) { this.title = title; this.price = price; } public static Book.BookBuilde..

개발직설/Design Pattern 2022. 3. 23. 18:07
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • Squash and merge
  • github
  • DGS Framework
  • 코딩테스트
  • graphql
  • go 특징
  • hashcode
  • Kotlin In Action
  • Basic Type
  • pm.test
  • Kotlin
  • python3
  • postman tests
  • solidity
  • downTo
  • 주생성자
  • 네이버 2022 공채
  • postman
  • git
  • string
  • 확장 함수
  • Python
  • pm.expect
  • mysql
  • postman collection
  • 코틀린
  • java
  • 1차 인터뷰
  • 2차 인터뷰
  • squash merge
more
«   2025/06   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바