Class MemoryConfigurationOptions
java.lang.Object
org.bspfsystems.yamlconfiguration.configuration.ConfigurationOptions
org.bspfsystems.yamlconfiguration.configuration.MemoryConfigurationOptions
- Direct Known Subclasses:
FileConfigurationOptions
Represents the various settings for controlling the input and output of a
memory configuration.
Synchronized with the commit on 13-March-2019.
-
Field Summary
Fields inherited from class org.bspfsystems.yamlconfiguration.configuration.ConfigurationOptions
DEFAULT_COPY_DEFAULTS, DEFAULT_PATH_SEPARATOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMemoryConfigurationOptions(@NotNull MemoryConfiguration configuration) Constructs a set of memory configuration options. -
Method Summary
Modifier and TypeMethodDescription@NotNull MemoryConfigurationGets the configuration that these options controls.@NotNull MemoryConfigurationOptionssetCopyDefaults(boolean copyDefaults) Sets if the configuration should copy values from its default configuration directly.@NotNull MemoryConfigurationOptionssetPathSeparator(char pathSeparator) Sets thecharthat will be used to separate configuration sections.Methods inherited from class org.bspfsystems.yamlconfiguration.configuration.ConfigurationOptions
getCopyDefaults, getPathSeparator
-
Constructor Details
-
MemoryConfigurationOptions
Constructs a set of memory configuration options.- Parameters:
configuration- The memory configuration to create the options for.- See Also:
-
-
Method Details
-
getConfiguration
Gets the configuration that these options controls.- Overrides:
getConfigurationin classConfigurationOptions- Returns:
- The configuration that these options controls.
-
setPathSeparator
Sets thecharthat will be used to separate configuration sections.This value does not affect how the configuration is stored, only in how you access the data.
The default value is
..- Overrides:
setPathSeparatorin classConfigurationOptions- Parameters:
pathSeparator- Thecharused to separate configuration sections.- Returns:
- These options, for chaining.
-
setCopyDefaults
Sets if the configuration should copy values from its default configuration directly.If this is
true, all values in the default configuration will be directly copied, making it impossible to distinguish between values that were set and values that are provided by default. As a result,ConfigurationSection.contains(String)will always return the same value asConfigurationSection.isSet(String).The default value is
false.- Overrides:
setCopyDefaultsin classConfigurationOptions- Parameters:
copyDefaults-trueif the default values should be copied,falseotherwise.- Returns:
- These options, for chaining.
-