Building Microservices with Spring
上QQ阅读APP看书,第一时间看更新

Benefits of the Builder pattern:

  • This pattern provides you with complete isolation between the construction and representation of an object
  • This pattern allows you to construct the object in multiple phases, so you have greater control over the construction process
  • This pattern provides the flexibility to vary an object's internal representation