Package com.yahoo.config
Class LeafNodeMaps
- java.lang.Object
-
- com.yahoo.config.LeafNodeMaps
-
public class LeafNodeMaps extends Object
- Since:
- 5.1.17
- Author:
- gjoranv
-
-
Constructor Summary
Constructors Constructor Description LeafNodeMaps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,FileNode>
asFileNodeMap(Map<String,String> stringMap)
Special case for file type, since FileNode param type (FileReference) is not same as type (String) in config builderstatic <NODE extends LeafNode<REAL>,REAL>
Map<String,NODE>asNodeMap(Map<String,REAL> input, NODE defaultNode)
Converts a map of String→REAL to String→NODE, where REAL is the underlying value type.static Map<String,PathNode>
asPathNodeMap(Map<String,FileReference> fileReferenceMap)
static Map<String,UrlNode>
asUrlNodeMap(Map<String,UrlReference> urlReferenceMap)
static <NODE extends LeafNode<REAL>,REAL>
Map<String,REAL>asValueMap(Map<String,NODE> input)
Converts a map of String→NODE to String→REAL, where REAL is the underlying value type.
-
-
-
Method Detail
-
asValueMap
public static <NODE extends LeafNode<REAL>,REAL> Map<String,REAL> asValueMap(Map<String,NODE> input)
Converts a map of String→NODE to String→REAL, where REAL is the underlying value type.
-
asNodeMap
public static <NODE extends LeafNode<REAL>,REAL> Map<String,NODE> asNodeMap(Map<String,REAL> input, NODE defaultNode)
Converts a map of String→REAL to String→NODE, where REAL is the underlying value type.
-
asFileNodeMap
public static Map<String,FileNode> asFileNodeMap(Map<String,String> stringMap)
Special case for file type, since FileNode param type (FileReference) is not same as type (String) in config builder
-
asPathNodeMap
public static Map<String,PathNode> asPathNodeMap(Map<String,FileReference> fileReferenceMap)
-
-