public class NodeOperations
extends java.lang.Object
| Constructor and Description |
|---|
NodeOperations() |
| Modifier and Type | Method and Description |
|---|---|
static void |
mergeTo(ConfigLeaf<?> value,
ConfigTreeBuilder to)
Merges a leaf node (
ConfigLeaf) into a ConfigNode. |
static void |
mergeTo(ConfigTree from,
ConfigTreeBuilder to)
Merges two
ConfigNode objects. |
static <T> void |
mergeTo(Property<T> from,
Property<T> to) |
public static void mergeTo(ConfigTree from, ConfigTreeBuilder to)
ConfigNode objects.
The first parameter from remains unchanged, but to will be mutated and receive all of from's children.
If both nodes have one or more children with the same name, the child from from takes priority.
from - The ConfigNode that will be read from, but not mutated.to - The mutated ConfigBranch that will inherit from's values and nodes.public static void mergeTo(ConfigLeaf<?> value, ConfigTreeBuilder to)
ConfigLeaf) into a ConfigNode.value - The leaf node to be inheritedto - The mutated ConfigBranch that will inherit value