Module tcconfig.core
Package xyz.tozymc.configuration.builder
Class AbstractConfigBuilder<T extends TcConfig>
- java.lang.Object
-
- xyz.tozymc.configuration.builder.AbstractConfigBuilder<T>
-
- Type Parameters:
T- The type of configuration.
- Direct Known Subclasses:
AbstractFileConfigBuilder
public abstract class AbstractConfigBuilder<T extends TcConfig> extends Object
Builder class to create a new configuration.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractConfigBuilder()Constructs new configuration builder.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TcreateConfig()Creates new configuration with specified parameters.charpathSeparator()Gets the char that will be used to separate inTcConfigSection, default is "46".@NotNull AbstractConfigBuilder<T>pathSeparator(char pathSeparator)Sets the char that will be used to separate inTcConfigSection.
-
-
-
Method Detail
-
pathSeparator
public char pathSeparator()
Gets the char that will be used to separate inTcConfigSection, default is "46".- Returns:
- Path separator.
-
pathSeparator
@NotNull public @NotNull AbstractConfigBuilder<T> pathSeparator(char pathSeparator)
Sets the char that will be used to separate inTcConfigSection.- Parameters:
pathSeparator- Path separator.- Returns:
- This builder, for chaining.
-
createConfig
public abstract T createConfig()
Creates new configuration with specified parameters.- Returns:
- The new configuration.
-
-