Class MemorySectionStandalone
java.lang.Object
com.kamikazejam.kamicommon.yaml.AbstractMemorySection<MemorySectionStandalone>
com.kamikazejam.kamicommon.yaml.base.MemorySectionMethods<MemorySectionStandalone>
com.kamikazejam.kamicommon.yaml.standalone.MemorySectionStandalone
- All Implemented Interfaces:
ConfigurationMethods<ConfigurationSectionStandalone>, ConfigurationSectionStandalone
- Direct Known Subclasses:
YamlConfigurationStandalone
public class MemorySectionStandalone
extends MemorySectionMethods<MemorySectionStandalone>
implements ConfigurationSectionStandalone
A nested section of a
StandaloneConfig, exposing the same read and write surface as the config itself over one branch of the
document. getConfigurationSection(String) never returns null: a key that is missing, or
that holds something other than a mapping, yields a section backed by a fresh detached node, so reads
fall through to their defaults but writes to that section never reach the parent document.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMemorySectionStandalone(@Nullable org.yaml.snakeyaml.nodes.MappingNode node, @NotNull String fullPath, @Nullable ConfigurationMethods<?> parent) -
Method Summary
Modifier and TypeMethodDescription@NotNull MemorySectionStandalone@NotNull ConfigurationSequenceStandaloneMethods inherited from class 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 AbstractMemorySection
contains, getKeyNode, getKeys, getNode, getNodeTuple, getNodeValue, getObject, internalPut, isPrimitiveWrapper, parseBigDecimal, put, set, setChangedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
MemorySectionStandalone
public MemorySectionStandalone(@Nullable @Nullable org.yaml.snakeyaml.nodes.MappingNode node, @NotNull @NotNull String fullPath, @Nullable @Nullable ConfigurationMethods<?> parent)
-
-
Method Details
-
getConfigurationSection
- Specified by:
getConfigurationSectionin interfaceConfigurationMethods<ConfigurationSectionStandalone>
-
getConfigurationSequence
- Specified by:
getConfigurationSequencein interfaceConfigurationMethods<ConfigurationSectionStandalone>
-
getCurrentPath
- Specified by:
getCurrentPathin interfaceConfigurationMethods<ConfigurationSectionStandalone>
-