Module nbbrd.design
Package nbbrd.design

Annotation Type BuilderPattern


@Target(TYPE) @Retention(SOURCE) @Documented public @interface BuilderPattern
The builder pattern is a design pattern that provides a flexible solution to various object creation problems in object-oriented programming. The builder pattern separates the construction of a complex object from its representation.
Author:
Philippe Charles
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The type of the object that will be built by the builder.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the method that builds the object.
  • Element Details

    • value

      Class<?> value
      The type of the object that will be built by the builder.
      Returns:
      a non-null type
    • buildMethodName

      String buildMethodName
      The name of the method that builds the object.
      Returns:
      a non-null method name
      Default:
      "build"