Packagecom.threerings.util.maps
Classpublic class DefaultValueMap
InheritanceDefaultValueMap Inheritance com.threerings.util.maps.ForwardingMap

A Map that returns the specified default value for missing keys, rather than returning undefined. containsKey() can still safely be used to see whether a mapping exists or not.



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

Parameters
key:Object

Returns
*