2016-06-30 18:14:41 +03:00
..
2016-05-29 20:05:54 +05:30
2016-05-29 20:05:54 +05:30
2014-08-10 10:07:18 +03:00
2016-06-30 18:14:41 +03:00

layout, title, folder, permalink, categories, tags
layout title folder permalink categories tags
pattern Builder builder /patterns/builder/ Creational
Java
Gang Of Four
Difficulty-Intermediate

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

Credits