- java.lang.Object
-
- org.github.gestalt.config.node.MergeNodes
-
public final class MergeNodes extends java.lang.ObjectUtility class for merging nodes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GResultOf<ConfigNode>mergeNodes(java.lang.String path, ConfigNode node1, ConfigNode node2)Merge two nodes and return the results of the merge.
-
-
-
Method Detail
-
mergeNodes
public static GResultOf<ConfigNode> mergeNodes(java.lang.String path, ConfigNode node1, ConfigNode node2)
Merge two nodes and return the results of the merge. The values in node1 will be overridden by the values in node2- Parameters:
path- the path of the nodes we are merging.node1- the base node, its properties will be overridden by the node2node2- the node to override the values of.- Returns:
- the merged nodes.
-
-