Class LeafNodeMaps


  • public class LeafNodeMaps
    extends Object
    Since:
    5.1.17
    Author:
    gjoranv
    • Constructor Detail

      • LeafNodeMaps

        public LeafNodeMaps()
    • 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