Package com.yahoo.config
Class LeafNodeMaps
- java.lang.Object
-
- com.yahoo.config.LeafNodeMaps
-
public class LeafNodeMaps extends java.lang.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 java.util.Map<java.lang.String,FileNode>
asFileNodeMap(java.util.Map<java.lang.String,java.lang.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>
java.util.Map<java.lang.String,NODE>asNodeMap(java.util.Map<java.lang.String,REAL> input, NODE defaultNode)
Converts a map of String→REAL to String→NODE, where REAL is the underlying value type.static java.util.Map<java.lang.String,PathNode>
asPathNodeMap(java.util.Map<java.lang.String,FileReference> fileReferenceMap)
static java.util.Map<java.lang.String,UrlNode>
asUrlNodeMap(java.util.Map<java.lang.String,UrlReference> urlReferenceMap)
static <NODE extends LeafNode<REAL>,REAL>
java.util.Map<java.lang.String,REAL>asValueMap(java.util.Map<java.lang.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> java.util.Map<java.lang.String,REAL> asValueMap(java.util.Map<java.lang.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> java.util.Map<java.lang.String,NODE> asNodeMap(java.util.Map<java.lang.String,REAL> input, NODE defaultNode)
Converts a map of String→REAL to String→NODE, where REAL is the underlying value type.
-
asFileNodeMap
public static java.util.Map<java.lang.String,FileNode> asFileNodeMap(java.util.Map<java.lang.String,java.lang.String> stringMap)
Special case for file type, since FileNode param type (FileReference) is not same as type (String) in config builder
-
asPathNodeMap
public static java.util.Map<java.lang.String,PathNode> asPathNodeMap(java.util.Map<java.lang.String,FileReference> fileReferenceMap)
-
asUrlNodeMap
public static java.util.Map<java.lang.String,UrlNode> asUrlNodeMap(java.util.Map<java.lang.String,UrlReference> urlReferenceMap)
-
-