Class MemorySection
java.lang.Object
cc.carm.lib.configuration.source.section.AbstractMapSection<MemorySection>
cc.carm.lib.configuration.source.section.MemorySection
- All Implemented Interfaces:
ConfigureSection
-
Field Summary
Fields inherited from class cc.carm.lib.configuration.source.section.AbstractMapSection
data, parent, path -
Constructor Summary
ConstructorsConstructorDescriptionMemorySection(@NotNull Map<?, ?> raw, @Nullable MemorySection parent, @NotNull String path) -
Method Summary
Modifier and TypeMethodDescription@NotNull MemorySectioncreateSection(@NotNull String path, @NotNull Map<?, ?> data) Creates a newConfigureSectionwith specified values.static MemorySectionof()static MemorySectionof(@Nullable MemorySection parent, @NotNull String path) static MemorySectionstatic MemorySectionof(@NotNull Map<?, ?> data, @Nullable MemorySection parent, @NotNull String path) static MemorySectionstatic MemorySection@NotNull MemorySectionself()Methods inherited from class cc.carm.lib.configuration.source.section.AbstractMapSection
asMap, contains, data, get, getKeys, getValues, isEmpty, mappingKeys, mappingValues, migrate, parent, path, remove, set, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cc.carm.lib.configuration.source.section.ConfigureSection
childPath, computeSection, computeSection, computeSection, computeSection, containsValue, createSection, createSection, createSection, forEach, fullPath, get, get, get, get, getBoolean, getBoolean, getByte, getByte, getByteList, getChar, getChar, getCharList, getCollection, getDouble, getDouble, getDoubleList, getFloat, getFloat, getFloatList, getInt, getInt, getIntegerList, getList, getList, getLong, getLong, getLongList, getSection, getSectionList, getShort, getShort, getString, getString, getStringList, isBoolean, isByte, isChar, isDouble, isFloat, isInt, isList, isLong, isRoot, isSection, isShort, isString, isType, keys, pathSeparator, stream, stream, stream, values
-
Constructor Details
-
MemorySection
public MemorySection(@NotNull @NotNull Map<?, ?> raw, @Nullable @Nullable MemorySection parent, @NotNull @NotNull String path)
-
-
Method Details
-
of
-
of
-
of
-
of
-
of
public static MemorySection of(@Nullable @Nullable MemorySection parent, @NotNull @NotNull String path) -
of
public static MemorySection of(@NotNull @NotNull Map<?, ?> data, @Nullable @Nullable MemorySection parent, @NotNull @NotNull String path) -
self
- Specified by:
selfin classAbstractMapSection<MemorySection>
-
createSection
@NotNull public @NotNull MemorySection createSection(@NotNull @NotNull String path, @NotNull @NotNull Map<?, ?> data) Description copied from interface:ConfigureSectionCreates a newConfigureSectionwith specified values.The
ConfigureSection.parent()of the new section will be this section.This section will not be saved until
ConfigureSection.set(String, Object)is called.If you want to create and use a section and set it to this section, use
ConfigureSection.computeSection(String).- Specified by:
createSectionin interfaceConfigureSection- Specified by:
createSectionin classAbstractMapSection<MemorySection>- Parameters:
data- The data to be used to create section.- Returns:
- Newly created section
-