YamlConfig.Builder

  
Type🔵 Subclass of YamlConfig.java
Packageio.github.mrtesz.teszcore.config
GitHubYamlConfig.java
ImplementsCopyable<YamlConfig.Builder>

Description

Builder class of the YamlConfig


Building

Create a new YamlConfig.Builder instance with YamlConfig#builder()


Methods

build

YamlConfig build();

Build the YamlConfig instance, previously configured

Returns: YamlConfig — the YamlConfig, previously configured

Throws: NullPointerException when fileName is not set or null Throws: NullPointerException when dumperOptions is null


copy

implemented from Copyable

T: YamlConfig.Builder


Builder Values

ValueTypeAnnotationsDefaultDescription
filePathString@NullablenullThe path, the YAML file will be created in
fileNameString@NotNull-The name, the YAML file will be created with
autosaveboolean-trueShould the config should be saved automatically in set()
dumperOptions<abbr title=org.yaml.snakeyaml.DumperOptions>DumperOptions</abbr>@NotNullnew DumperOptions()The Dumper Options, the YAML file will be created with
defaultStyle<abbr title=org.yaml.snakeyaml.DumperOptions>DumperOptions.ScalarStyle</abbr>@NotNullDumperOptions.ScalarStyle.PLAINdefaultStyle of the DumperOptions
defaultFlowStyle<abbr title=org.yaml.snakeyaml.DumperOptions>DumperOptions.FlowStyle</abbr>@NotNullDumperOptions.FlowStyle.AUTOdefaultFlowStyle of the DumperOptions
lineBreak<abbr title=org.yaml.snakeyaml.DumperOptions>DumperOptions.LineBreak</abbr>@NotNullDumperOptions.LineBreak.UNIXlineBreak of the DumperOptions
nonPrintableStyle<abbr title=org.yaml.snakeyaml.DumperOptions>DumperOptions.NonPrintableStyle</abbr>-DumperOptions.NonPrintableStyle.BINARYnonPrintableStyle of the DumperOptions
anchorGenerator<abbr title=org.yaml.snakeyaml.serializer.AnchorGenerator>AnchorGenerator</abbr>-<abbr title=org.yaml.snakeyaml.serializer.NumberAnchorGenerator>new NumberAnchorGenerator(0)</abbr>anchorGenerator of the DumperOptions
version<abbr title=org.yaml.snakeyaml.DumperOptions>DumperOptions.Version</abbr>@Nullablenullversion of the DumperOptions
timeZone<abbr title=java.util.TimeZone>TimeZone</abbr>@NullablenulltimeZone of the DumperOptions
canonicalboolean-falsecanonical of the DumperOptions
allowUnicodeboolean-trueallowUnicode of the DumperOptions
indentint-2indent of the DumperOptions
indicatorIndentint-0indicatorIndent of the DumperOptions
indentWithIndicatorboolean-falseindentWithIndicator of the DumperOptions
widthint-80bestWidth of the DumperOptions
splitLinesboolean-truesplitLines of the DumperOptions
explicitStartboolean-falseexplicitStart of the DumperOptions
explicitEndboolean@NotNullfalseexplicitEnd of the DumperOptions
maxSimpleKeyLengthint-128maxSimpleKeyLength of the DumperOptions
processCommentsboolean-falseprocessComments of the DumperOptions
tagsMap<String, String>@Nullablenulltags of the DumperOptions
prettyFlowBoolean-falseprettyFlow of the DumperOptions

For further information about DumperOptions values, see DumperOptions Javadoc or the SnakeYAML Source.


Back to top

Copyright © 2026 Mr_Tesz. All rights reserved

This site uses Just the Docs, a documentation theme for Jekyll.