Returns a specified element from the Map object.
Returns the element associated with the specified key. If no element is associated with the specified key, the value is created.
If the key does not exist in the dynamic map, the fnCreateValue callback will be invoked to create
the key. The resulting value is then internally retained by the dynamic map.
If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
The DynamicMap implements a Map that dynamically creates values for requested keys. If a call to get is made for a key that does not exist yet, the
fnCreateValuecallback will be invoked to create the value dynamically.Note
This map is most useful to create systems that dynamically cache objects that are lazily created.