A Map that stores weak values. If the values are not referenced anywhere else in
the runtime, this Map may unexpectedly shrink in size.
public function WeakValueMap(source:Map)
Parameters
public override function containsKey(key:Object):Boolean
Returns true if the specified key exists in the map.
Parameters
Returns
public override function forEach(fn:Function):void
Call the specified function to iterate over the mappings in this Map.
Signature:
function (key :Object, value :Object) :void
or
function (key :Object, value :Object) :Boolean
If you return a Boolean, you may return true
to indicate that you've
found what you were looking for, and halt iteration.
Parameters
public override function get(key:Object):*
Parameters
Returns
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
Returns
public override function remove(key:Object):*
Removes the mapping for the specified key.
Returns the value that had been stored, or undefined.
Parameters
Returns
public override function size():int
Return the current size of the map.
Returns
Copyright © 2007-2009 Three Rings Design, Inc.