Package com.yahoo.config
Class LeafNodeMaps
java.lang.Object
com.yahoo.config.LeafNodeMaps
- Since:
- 5.1.17
- Author:
- gjoranv
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasFileNodeMap
(Map<String, String> stringMap) Special case for file type, since FileNode param type (FileReference) is not same as type (String) in config builderConverts a map of String→REAL to String→NODE, where REAL is the underlying value type.asPathNodeMap
(Map<String, FileReference> fileReferenceMap) asUrlNodeMap
(Map<String, UrlReference> urlReferenceMap) asValueMap
(Map<String, NODE> input) Converts a map of String→NODE to String→REAL, where REAL is the underlying value type.
-
Constructor Details
-
LeafNodeMaps
public LeafNodeMaps()
-
-
Method Details
-
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
Special case for file type, since FileNode param type (FileReference) is not same as type (String) in config builder -
asPathNodeMap
-
asUrlNodeMap
-