Packagecom.threerings.util.maps
Classpublic class ImmutableMap
InheritanceImmutableMap Inheritance com.threerings.util.maps.ForwardingMap

A map that throws IllegalOperationError is thrown if any mutating methods are called.



Public Methods
 MethodDefined by
  
ImmutableMap(source:Map)
ImmutableMap
  
clear():void
Clear this map, removing all stored elements.
ImmutableMap
  
put(key:Object, value:Object):*
Store a value in the map associated with the specified key.
ImmutableMap
  
remove(key:Object):*
Removes the mapping for the specified key.
ImmutableMap
Constructor detail
ImmutableMap()constructor
public function ImmutableMap(source:Map)Parameters
source:Map
Method detail
clear()method
public override function clear():void

Clear this map, removing all stored elements.

put()method 
public override function put(key:Object, value:Object):*

Store a value in the map associated with the specified key. Returns the previous value stored for that key, or undefined.

Parameters
key:Object
 
value:Object

Returns
*
remove()method 
public override function remove(key:Object):*

Removes the mapping for the specified key. Returns the value that had been stored, or undefined.

Parameters
key:Object

Returns
*