Class YamlConfigurationStandalone
java.lang.Object
com.kamikazejam.kamicommon.yaml.AbstractMemorySection<T>
com.kamikazejam.kamicommon.yaml.base.MemorySectionMethods<MemorySectionStandalone>
com.kamikazejam.kamicommon.yaml.standalone.MemorySectionStandalone
com.kamikazejam.kamicommon.yaml.standalone.YamlConfigurationStandalone
- All Implemented Interfaces:
AbstractYamlConfiguration,ConfigurationMethods<ConfigurationSectionStandalone>,ConfigurationSectionStandalone
public class YamlConfigurationStandalone
extends MemorySectionStandalone
implements AbstractYamlConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionYamlConfigurationStandalone(@NotNull org.yaml.snakeyaml.nodes.MappingNode node, @NotNull ConfigSource source) -
Method Summary
Methods inherited from class com.kamikazejam.kamicommon.yaml.standalone.MemorySectionStandalone
getConfigurationSection, getConfigurationSequence, getCurrentPathMethods inherited from class com.kamikazejam.kamicommon.yaml.base.MemorySectionMethods
addDefault, contains, get, get, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getByte, getByte, getByteList, getByteList, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getIntegerList, getIntegerList, getKeys, getList, getList, getLong, getLong, getShort, getShort, getString, getString, getStringList, getStringList, isBoolean, isByte, isConfigurationSection, isDouble, isEmpty, isFloat, isInt, isList, isLong, isNumber, isSet, isShort, isString, putBoolean, putByte, putDouble, putFloat, putInt, putInteger, putLong, putShort, putString, save, save, setBoolean, setByte, setDouble, setFloat, setInt, setInteger, setLong, setShort, setStringMethods inherited from class com.kamikazejam.kamicommon.yaml.AbstractMemorySection
contains, getKeyNode, getKeys, getNode, getNodeTuple, getNodeValue, getObject, internalPut, isPrimitiveWrapper, parseBigDecimal, put, set, setChangedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.kamikazejam.kamicommon.yaml.AbstractYamlConfiguration
contains, getKeyNode, getKeys, getNodeTuple, internalPut, isChanged, setChangedMethods inherited from interface com.kamikazejam.kamicommon.yaml.base.ConfigurationMethods
addDefault, contains, get, get, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getByte, getByte, getByteList, getByteList, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getIntegerList, getIntegerList, getKeys, getList, getList, getLong, getLong, getShort, getShort, getString, getString, getStringList, getStringList, isBoolean, isByte, isChanged, isConfigurationSection, isDouble, isEmpty, isFloat, isInt, isList, isLong, isNumber, isSet, isShort, isString, put, putBoolean, putByte, putDouble, putFloat, putInt, putInteger, putLong, putShort, putString, set, setBoolean, setByte, setChanged, setDouble, setFloat, setInt, setInteger, setLong, setShort, setString
-
Constructor Details
-
YamlConfigurationStandalone
public YamlConfigurationStandalone(@NotNull @NotNull org.yaml.snakeyaml.nodes.MappingNode node, @NotNull @NotNull ConfigSource source)
-
-
Method Details
-
save
public boolean save()Saves the config to the backing source- Specified by:
savein interfaceAbstractYamlConfiguration- Returns:
- true IFF the config was saved successfully (can be skipped if the config is not changed)
-
save
public boolean save(boolean force) Saves the config to the backing source- Specified by:
savein interfaceAbstractYamlConfiguration- Parameters:
force- If the config should be saved even if no changes were made- Returns:
- IFF the config was saved (can be skipped if no changes were made and force is false)
-