Class MemorySection
- java.lang.Object
-
- cc.carm.lib.configuration.source.section.AbstractMapSection<MemorySection>
-
- cc.carm.lib.configuration.source.section.MemorySection
-
- All Implemented Interfaces:
ConfigureSection
public class MemorySection extends AbstractMapSection<MemorySection>
-
-
Field Summary
-
Fields inherited from class cc.carm.lib.configuration.source.section.AbstractMapSection
data, parent, path
-
-
Constructor Summary
Constructors Constructor Description MemorySection(@NotNull java.util.Map<?,?> raw, @Nullable MemorySection parent, @NotNull java.lang.String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull MemorySectioncreateSection(@NotNull java.lang.String path, @NotNull java.util.Map<?,?> data)Creates a newConfigureSectionwith specified values.static MemorySectionof()static MemorySectionof(@NotNull java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> data)static MemorySectionof(@NotNull java.util.function.Supplier<java.util.Map<?,?>> data)static MemorySectionof(@NotNull java.util.Map<?,?> data)static MemorySectionof(@NotNull java.util.Map<?,?> data, @Nullable MemorySection parent, @NotNull java.lang.String path)static MemorySectionof(@Nullable MemorySection parent, @NotNull java.lang.String path)@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, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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, 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 Detail
-
MemorySection
public MemorySection(@NotNull @NotNull java.util.Map<?,?> raw, @Nullable @Nullable MemorySection parent, @NotNull @NotNull java.lang.String path)
-
-
Method Detail
-
of
public static MemorySection of()
-
of
public static MemorySection of(@NotNull @NotNull java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> data)
-
of
public static MemorySection of(@NotNull @NotNull java.util.function.Supplier<java.util.Map<?,?>> data)
-
of
public static MemorySection of(@NotNull @NotNull java.util.Map<?,?> data)
-
of
public static MemorySection of(@Nullable @Nullable MemorySection parent, @NotNull @NotNull java.lang.String path)
-
of
public static MemorySection of(@NotNull @NotNull java.util.Map<?,?> data, @Nullable @Nullable MemorySection parent, @NotNull @NotNull java.lang.String path)
-
self
@NotNull public @NotNull MemorySection self()
- Specified by:
selfin classAbstractMapSection<MemorySection>
-
createSection
@NotNull public @NotNull MemorySection createSection(@NotNull @NotNull java.lang.String path, @NotNull @NotNull java.util.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>data- The data to be used to create section.- Returns:
- Newly created section
-
-