Class Deprecation.Builder
java.lang.Object
io.helidon.common.features.metadata.Deprecation.BuilderBase<Deprecation.Builder, Deprecation>
io.helidon.common.features.metadata.Deprecation.Builder
- All Implemented Interfaces:
Prototype.Builder<Deprecation.Builder, Deprecation>, Builder<Deprecation.Builder, Deprecation>, Supplier<Deprecation>
- Enclosing interface:
Deprecation
public static class Deprecation.Builder
extends Deprecation.BuilderBase<Deprecation.Builder, Deprecation>
implements Builder<Deprecation.Builder, Deprecation>
Fluent API builder for
Deprecation.-
Nested Class Summary
Nested classes/interfaces inherited from class Deprecation.BuilderBase
Deprecation.BuilderBase.DeprecationImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class Deprecation.BuilderBase
clearDescription, clearSince, description, description, from, from, isDeprecated, isDeprecated, preBuildPrototype, since, since, toString, validatePrototypeModifier and TypeMethodDescriptionClear existing value of description.Clear existing value of since.Deprecation description.description(String description) Deprecation description.from(Deprecation prototype) Update this builder from an existing prototype instance.from(Deprecation.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.booleanWhether this module is deprecated, defaults totrue.isDeprecated(boolean isDeprecated) Whether this module is deprecated, defaults totrue.protected voidHandles providers and decorators.since()First version this feature was deprecated in.First version this feature was deprecated in.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 Deprecationget()default Deprecation.Builderidentity()Instance of this builder as the correct type.default Deprecation.Builderupdate(Consumer<Deprecation.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault Deprecation.Builderself()Instance of this builder as the correct type.
-
Method Details
-
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:
buildPrototypein interfacePrototype.Builder<Deprecation.Builder, Deprecation>- Returns:
- an instance of the setup object created from this builder
-
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:
buildin interfaceBuilder<Deprecation.Builder, Deprecation>- Returns:
- instance of the built type
-