Class OptionBuilder.Builder
java.lang.Object
io.helidon.builder.codegen.OptionBuilder.BuilderBase<OptionBuilder.Builder, OptionBuilder>
io.helidon.builder.codegen.OptionBuilder.Builder
- All Implemented Interfaces:
Prototype.Builder<OptionBuilder.Builder, OptionBuilder>, Builder<OptionBuilder.Builder, OptionBuilder>, Supplier<OptionBuilder>
- Enclosing interface:
OptionBuilder
public static class OptionBuilder.Builder
extends OptionBuilder.BuilderBase<OptionBuilder.Builder, OptionBuilder>
implements Builder<OptionBuilder.Builder, OptionBuilder>
Fluent API builder for
OptionBuilder.-
Nested Class Summary
Nested classes/interfaces inherited from class OptionBuilder.BuilderBase
OptionBuilder.BuilderBase.OptionBuilderImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Methods inherited from class OptionBuilder.BuilderBase
builderMethodName, builderMethodName, builderMethodType, builderMethodType, builderMethodType, builderMethodType, builderType, builderType, builderType, builderType, buildMethodName, buildMethodName, from, from, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionName of the static builder method, or<init>to identify a constructor should be used.builderMethodName(String builderMethodName) Name of the static builder method, or<init>to identify a constructor should be used.Type of the class declaring aOptionBuilder.BuilderBase.builderMethodName()used to get an instance of the builder to send to the generated setter with consumer.builderMethodType(TypeName builderMethodType) Type of the class declaring aOptionBuilder.BuilderBase.builderMethodName()used to get an instance of the builder to send to the generated setter with consumer.builderMethodType(Consumer<TypeName.Builder> consumer) Type of the class declaring aOptionBuilder.BuilderBase.builderMethodName()used to get an instance of the builder to send to the generated setter with consumer.builderMethodType(Supplier<? extends TypeName> supplier) Type of the class declaring aOptionBuilder.BuilderBase.builderMethodName()used to get an instance of the builder to send to the generated setter with consumer.Type of the builder.builderType(TypeName builderType) Type of the builder.builderType(Consumer<TypeName.Builder> consumer) Type of the builder.builderType(Supplier<? extends TypeName> supplier) Type of the builder.Name of the build method (buildorbuildPrototype).buildMethodName(String buildMethodName) Name of the build method (buildorbuildPrototype).from(OptionBuilder prototype) Update this builder from an existing prototype instance.from(OptionBuilder.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault OptionBuilderget()default OptionBuilder.Builderidentity()Instance of this builder as the correct type.default OptionBuilder.Builderupdate(Consumer<OptionBuilder.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault OptionBuilder.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Description copied from interface:Prototype.BuilderCreate an instance of thePrototype. This method is available on all generated builders forPrototype.Blueprint.Calling this method may update the builder from providers and decorators, so repeated calls may have side effects such as repeated provider discovery.
- Specified by:
buildPrototypein interfacePrototype.Builder<OptionBuilder.Builder, OptionBuilder>- Returns:
- an instance of the setup object created from this builder
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<OptionBuilder.Builder, OptionBuilder>- Returns:
- instance of the built type
-