Class SnapshotConfigNode
java.lang.Object
tech.guilhermekaua.spigotboot.config.node.AbstractValueConfigNode
tech.guilhermekaua.spigotboot.config.node.SnapshotConfigNode
- All Implemented Interfaces:
ConfigNode
Detached immutable
ConfigNode backed by plain map/list/scalar values.
Used when resolution needs to rebuild part of a node tree without mutating the original implementation-specific node instance.
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull ConfigNodecreateChildNode(@Nullable Object value, @NotNull PropertyPath path, boolean virtual) protected @NotNull PropertyPathprotected @Nullable Objectprotected booleanstatic @NotNull SnapshotConfigNodeof(@Nullable Object value, @NotNull PropertyPath path) static @NotNull SnapshotConfigNodevirtual(@NotNull PropertyPath path) Methods inherited from class tech.guilhermekaua.spigotboot.config.node.AbstractValueConfigNode
childrenList, childrenMap, get, get, hasChild, isList, isMap, isNull, isScalar, isVirtual, node, node, path, raw
-
Method Details
-
of
@NotNull public static @NotNull SnapshotConfigNode of(@Nullable @Nullable Object value, @NotNull @NotNull PropertyPath path) -
virtual
-
currentValue
- Specified by:
currentValuein classAbstractValueConfigNode
-
currentPath
- Specified by:
currentPathin classAbstractValueConfigNode
-
currentVirtual
protected boolean currentVirtual()- Specified by:
currentVirtualin classAbstractValueConfigNode
-
createChildNode
@NotNull protected @NotNull ConfigNode createChildNode(@Nullable @Nullable Object value, @NotNull @NotNull PropertyPath path, boolean virtual) - Specified by:
createChildNodein classAbstractValueConfigNode
-