Packagecom.threerings.util.maps
Classpublic class ValueComputingMap
InheritanceValueComputingMap Inheritance com.threerings.util.maps.ForwardingMap

A Map that fills in values for missing keys using a supplied function than returning undefined. containsKey() can still safely be used to see whether a mapping exists or not.



Public Methods
 MethodDefined by
  
ValueComputingMap(source:Map, computer:Function)
ValueComputingMap
  
get(key:Object):*
ValueComputingMap
Constructor detail
ValueComputingMap()constructor
public function ValueComputingMap(source:Map, computer:Function)Parameters
source:Map
 
computer:Function
Method detail
get()method
public override function get(key:Object):*

Parameters
key:Object

Returns
*