This utility is useful for users who have a NodeIdentifier handy,
bypassing NodeIdentifier.create().
Change-Id: I10f16ce5048ccb3b646761694b38f431447e09f2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
}
public static CollectionNodeBuilder<MapEntryNode, MapNode> mapNodeBuilder(final QName name) {
}
public static CollectionNodeBuilder<MapEntryNode, MapNode> mapNodeBuilder(final QName name) {
- return ImmutableMapNodeBuilder.create().withNodeIdentifier(NodeIdentifier.create(name));
+ return mapNodeBuilder(NodeIdentifier.create(name));
+ }
+
+ public static CollectionNodeBuilder<MapEntryNode, MapNode> mapNodeBuilder(final NodeIdentifier name) {
+ return ImmutableMapNodeBuilder.create().withNodeIdentifier(name);
* @param <T> Type of leaf node value
* @return Leaf node with supplied identifier and value
*/
* @param <T> Type of leaf node value
* @return Leaf node with supplied identifier and value
*/
- public static <T> LeafNode<T> leafNode(final QName name,final T value) {
+ public static <T> LeafNode<T> leafNode(final QName name, final T value) {
return leafNode(NodeIdentifier.create(name), value);
}
return leafNode(NodeIdentifier.create(name), value);
}