Class ModelElement.Builder

All Implemented Interfaces:
Prototype.Builder<ModelElement.Builder, ModelElement>, Builder<ModelElement.Builder, ModelElement>, Supplier<ModelElement>
Enclosing interface:
ModelElement

public static class ModelElement.Builder extends ModelElement.BuilderBase<ModelElement.Builder, ModelElement> implements Builder<ModelElement.Builder, ModelElement>
Fluent API builder for ModelElement.
  • Method Details

    • buildPrototype

      public ModelElement buildPrototype()
      Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.
      Specified by:
      buildPrototype in interface Prototype.Builder<ModelElement.Builder, ModelElement>
      Returns:
      an instance of the setup object created from this builder
    • build

      public ModelElement build()
      Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.
      Specified by:
      build in interface Builder<ModelElement.Builder, ModelElement>
      Returns:
      instance of the built type