X Tutup
Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 882 Bytes

File metadata and controls

24 lines (18 loc) · 882 Bytes
layout pattern
title Builder
folder builder
permalink /patterns/builder/
categories Creational
tags Java

Intent: Separate the construction of a complex object from its representation so that the same construction process can create different representations.

alt text

Applicability: Use the Builder pattern when

  • the algorithm for creating a complex object should be independent of the parts that make up the object and how they're assembled
  • the construction process must allow different representations for the object that's constructed

Real world examples:

X Tutup