Package io.github.mrtesz.teszcore.config
Class YamlConfig.Builder
java.lang.Object
io.github.mrtesz.teszcore.config.YamlConfig.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build theYamlConfiginstancecopy()Copy the executing classsetAllowReadOnlyProperties(boolean allowReadOnlyProperties) setAllowUnicode(boolean allowUnicode) setAnchorGenerator(org.yaml.snakeyaml.serializer.AnchorGenerator anchorGenerator) setAutosave(boolean autosave) setCanonical(boolean canonical) setDefaultFlowStyle(org.yaml.snakeyaml.DumperOptions.FlowStyle defaultFlowStyle) setDefaultScalarStyle(org.yaml.snakeyaml.DumperOptions.ScalarStyle defaultStyle) setDumperOptions(@NotNull org.yaml.snakeyaml.DumperOptions dumperOptions) setExplicitEnd(boolean explicitEnd) setExplicitStart(boolean explicitStart) setFileName(@NotNull String fileName) setFilePath(@Nullable String filePath) setIndent(int indent) setIndentWithIndicator(boolean indentWithIndicator) setIndicatorIndent(int indicatorIndent) setLineBreak(org.yaml.snakeyaml.DumperOptions.LineBreak lineBreak) setMaxSimpleKeyLength(int maxSimpleKeyLength) setNonPrintableStyle(org.yaml.snakeyaml.DumperOptions.NonPrintableStyle nonPrintableStyle) setPrettyFlow(Boolean prettyFlow) setProcessComments(boolean processComments) setSplitLines(boolean splitLines) setTimeZone(@Nullable TimeZone timeZone) setVersion(org.yaml.snakeyaml.DumperOptions.Version version) setWidth(int bestWidth)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Build theYamlConfiginstance- Returns:
- the YamlConfig
- Throws:
NullPointerException
-
setFilePath
-
setFileName
-
setAutosave
-
setDumperOptions
public YamlConfig.Builder setDumperOptions(@NotNull @NotNull org.yaml.snakeyaml.DumperOptions dumperOptions) -
setDefaultScalarStyle
public YamlConfig.Builder setDefaultScalarStyle(@NotNull org.yaml.snakeyaml.DumperOptions.ScalarStyle defaultStyle) -
setDefaultFlowStyle
public YamlConfig.Builder setDefaultFlowStyle(@NotNull org.yaml.snakeyaml.DumperOptions.FlowStyle defaultFlowStyle) -
setCanonical
-
setAllowUnicode
-
setAllowReadOnlyProperties
-
setIndent
-
setIndicatorIndent
-
setIndentWithIndicator
-
setWidth
-
setSplitLines
-
setLineBreak
public YamlConfig.Builder setLineBreak(@NotNull org.yaml.snakeyaml.DumperOptions.LineBreak lineBreak) -
setExplicitStart
-
setExplicitEnd
-
setTimeZone
-
setMaxSimpleKeyLength
-
setProcessComments
-
setNonPrintableStyle
public YamlConfig.Builder setNonPrintableStyle(org.yaml.snakeyaml.DumperOptions.NonPrintableStyle nonPrintableStyle) -
setVersion
-
setTags
-
setPrettyFlow
-
setAnchorGenerator
public YamlConfig.Builder setAnchorGenerator(org.yaml.snakeyaml.serializer.AnchorGenerator anchorGenerator) -
copy
Description copied from interface:CopyableCopy the executing class- Specified by:
copyin interfaceCopyable<YamlConfig.Builder>- Returns:
- a copy of the class executed in
-