Class SmileConfig.Builder
java.lang.Object
io.helidon.json.smile.SmileConfig.BuilderBase<SmileConfig.Builder, SmileConfig>
io.helidon.json.smile.SmileConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<SmileConfig.Builder, SmileConfig>, Builder<SmileConfig.Builder, SmileConfig>, Supplier<SmileConfig>
- Enclosing interface:
SmileConfig
public static class SmileConfig.Builder
extends SmileConfig.BuilderBase<SmileConfig.Builder, SmileConfig>
implements Builder<SmileConfig.Builder, SmileConfig>
Fluent API builder for
SmileConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class SmileConfig.BuilderBase
SmileConfig.BuilderBase.SmileConfigImplModifier 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 SmileConfig.BuilderBase
emitEndMark, emitEndMark, from, from, preBuildPrototype, rawBinaryEnabled, rawBinaryEnabled, sharedKeyStrings, sharedKeyStrings, sharedValueStrings, sharedValueStrings, toString, validatePrototypeModifier and TypeMethodDescriptionbooleanWhether to emit the optional Smile end marker when closing a generator.emitEndMark(boolean emitEndMark) Whether to emit the optional Smile end marker when closing a generator.from(SmileConfig prototype) Update this builder from an existing prototype instance.from(SmileConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.booleanWhether to allow raw binary values in Smile content.rawBinaryEnabled(boolean rawBinaryEnabled) Whether to allow raw binary values in Smile content.booleanWhether to enable shared key string references.sharedKeyStrings(boolean sharedKeyStrings) Whether to enable shared key string references.booleanWhether to enable shared value string references.sharedValueStrings(boolean sharedValueStrings) Whether to enable shared value string references.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 SmileConfigget()default SmileConfig.Builderidentity()Instance of this builder as the correct type.default SmileConfig.Builderupdate(Consumer<SmileConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault SmileConfig.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<SmileConfig.Builder, SmileConfig>- 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<SmileConfig.Builder, SmileConfig>- Returns:
- instance of the built type
-