- java.lang.Object
-
- xyz.tozymc.configuration.builder.AbstractConfigBuilder<T>
-
- xyz.tozymc.configuration.file.builder.AbstractFileConfigBuilder<TomlConfig>
-
- xyz.tozymc.configuration.toml.builder.TomlConfigBuilder
-
public class TomlConfigBuilder extends xyz.tozymc.configuration.file.builder.AbstractFileConfigBuilder<TomlConfig>
Builder class to create a newTomlConfig.- Since:
- 1.0
- See Also:
TomlConfig,TomlConfigOptions
-
-
Constructor Summary
Constructors Constructor Description TomlConfigBuilder(Path configPath)Constructs new file configuration builder with configPath.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TomlConfigbuildConfig()intindent()Gets the indent of between parent and child element.TomlConfigBuilderindent(int indent)Sets the indent of between parent and child element.-
Methods inherited from class xyz.tozymc.configuration.file.builder.AbstractFileConfigBuilder
configPath, createConfig, defaultResource, defaultStream, defaultStream, reloadType, reloadType
-
-
-
-
Method Detail
-
indent
public int indent()
Gets the indent of between parent and child element.- Returns:
- The indent of between parent and child element.
-
indent
public TomlConfigBuilder indent(int indent)
Sets the indent of between parent and child element.- Parameters:
indent- indent of between parent and child element.- Returns:
- This builder, for chaining.
-
buildConfig
protected TomlConfig buildConfig()
- Specified by:
buildConfigin classxyz.tozymc.configuration.file.builder.AbstractFileConfigBuilder<TomlConfig>
-
-