Interface Builder

All Known Implementing Classes:
ConcreteBuilder

public interface Builder
Abstract interface for constructing a Product. Defines the methods for building different parts of a product and retrieving the final constructed result.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Builds Part A of the product.
    void
    Builds Part B of the product.
    Retrieves the constructed product.
  • Method Details

    • buildPartA

      void buildPartA()
      Builds Part A of the product.
    • buildPartB

      void buildPartB()
      Builds Part B of the product.
    • getResult

      Product getResult()
      Retrieves the constructed product.
      Returns:
      The constructed Product instance.