Interface Prototype.Builder<BUILDER,PROTOTYPE>

Type Parameters:
BUILDER - type of the builder. see self()
PROTOTYPE - type of the prototype to be built
All Known Subinterfaces:
Prototype.ConfiguredBuilder<BUILDER,PROTOTYPE>
Enclosing class:
Prototype

public static interface Prototype.Builder<BUILDER,PROTOTYPE>
Terminating method of this builder that creates a prototype instance. If the object is a factory, it has a further method build, that produces the target runtime instance created from this builder or setup object instance.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Create an instance of the Prototype.
    default BUILDER
    Instance of this builder as the correct type.
  • Method Details

    • buildPrototype

      PROTOTYPE buildPrototype()
      Create an instance of the Prototype. This method is available on all generated builders for Prototype.Blueprint.
      Returns:
      an instance of the setup object created from this builder
    • self

      default BUILDER self()
      Instance of this builder as the correct type.
      Returns:
      this instance typed to correct type