Class MapWriterMap

    • Constructor Detail

      • MapWriterMap

        public MapWriterMap​(Map delegate)
    • Method Detail

      • _get

        public Object _get​(String path,
                           Object def)
        Description copied from interface: NavigableObject
        Get a child object value using json path. This usually ends up in String split operations use a list of strings where performance is important
        Specified by:
        _get in interface NavigableObject
        Parameters:
        path - the full path to that object such as a/b/c[4]/d etc
        def - the default
        Returns:
        the found value or default
      • _get

        public Object _get​(List<String> path,
                           Object def)
        Description copied from interface: NavigableObject
        Get a child object value using json path
        Specified by:
        _get in interface NavigableObject
        Parameters:
        path - the full path to that object such as ["a","b","c[4]","d"] etc
        def - the default
        Returns:
        the found value or default
      • toMap

        public Map toMap​(Map<String,​Object> map)
        Description copied from interface: MapSerializable
        Use the passed map to minimize object creation. Do not keep a reference to the passed map and reuse it. it may be reused by the framework
        Specified by:
        toMap in interface MapSerializable
        Specified by:
        toMap in interface MapWriter