Class LeafNodeMaps

java.lang.Object
com.yahoo.config.LeafNodeMaps

public class LeafNodeMaps extends Object
Since:
5.1.17
Author:
gjoranv
  • 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

      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)
    • asUrlNodeMap

      public static Map<String,UrlNode> asUrlNodeMap(Map<String,UrlReference> urlReferenceMap)