public class MemoryConfigurationOptions extends ConfigurationOptions
Synchronized with the commit on 13-March-2019.
DEFAULT_COPY_DEFAULTS, DEFAULT_PATH_SEPARATOR| Modifier | Constructor and Description |
|---|---|
protected |
MemoryConfigurationOptions(@NotNull MemoryConfiguration configuration)
Constructs a set of memory configuration options.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull MemoryConfiguration |
getConfiguration()
Gets the configuration that these options controls.
|
@NotNull MemoryConfigurationOptions |
setCopyDefaults(boolean copyDefaults)
Sets if the configuration should copy values from its default
configuration directly.
|
@NotNull MemoryConfigurationOptions |
setPathSeparator(char pathSeparator)
Sets the
char that will be used to separate configuration
sections. |
getCopyDefaults, getPathSeparatorprotected MemoryConfigurationOptions(@NotNull
@NotNull MemoryConfiguration configuration)
configuration - The memory configuration to create the options for.ConfigurationOptions(Configuration)@NotNull public @NotNull MemoryConfiguration getConfiguration()
getConfiguration in class ConfigurationOptions@NotNull public @NotNull MemoryConfigurationOptions setPathSeparator(char pathSeparator)
char that 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 ..
setPathSeparator in class ConfigurationOptionspathSeparator - The char used to separate configuration
sections.@NotNull public @NotNull MemoryConfigurationOptions setCopyDefaults(boolean copyDefaults)
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 as ConfigurationSection.isSet(String).
The default value is false.
setCopyDefaults in class ConfigurationOptionscopyDefaults - true if the default values should be copied,
false otherwise.Copyright © 2024 BSPF Systems, LLC. All rights reserved.