Skip to main content

Builder

  • Chapter
  • First Online:
Scala Design Patterns
  • 2969 Accesses

Abstract

The aim of the Builder pattern is to separate the construction of a complex object from the client of that object so that the creation process can create different implementations as required without affecting the client. Thus the client does not have visibility of the object’s construction process. Instead the client provides information on the type of object that is required and what its content might be. The Builder then determines how object is constructed and initialised.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.00
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer International Publishing Switzerland

About this chapter

Cite this chapter

Hunt, J. (2013). Builder. In: Scala Design Patterns. Springer, Cham. https://doi.org/10.1007/978-3-319-02192-8_20

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-02192-8_20

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-02191-1

  • Online ISBN: 978-3-319-02192-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics