![JAR search and dependency download from the Maven repository](/logo.png)
ru.healexxzt.config.MemoryConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vk-bot-keyboard Show documentation
Show all versions of vk-bot-keyboard Show documentation
SDK for interacting with VK.com API
package ru.healexxzt.config;
import java.util.*;
public class MemoryConfiguration extends MemorySection implements Configuration
{
protected Configuration defaults;
protected MemoryConfigurationOptions options;
public MemoryConfiguration() {
}
public MemoryConfiguration(final Configuration defaults) {
this.defaults = defaults;
}
@Override
public void addDefault(final String path, final Object value) {
if (this.defaults == null) {
this.defaults = new MemoryConfiguration();
}
this.defaults.set(path, value);
}
@Override
public void addDefaults(final Map defaults) {
for (final Map.Entry entry : defaults.entrySet()) {
this.addDefault(entry.getKey(), entry.getValue());
}
}
@Override
public void addDefaults(final Configuration defaults) {
this.addDefaults(defaults.getValues(true));
}
@Override
public void setDefaults(final Configuration defaults) {
this.defaults = defaults;
}
@Override
public Configuration getDefaults() {
return this.defaults;
}
@Override
public ConfigurationSection getParent() {
return null;
}
@Override
public MemoryConfigurationOptions options() {
if (this.options == null) {
this.options = new MemoryConfigurationOptions(this);
}
return this.options;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy