WeakMap allows mapping of object keys to arbitrary values.

The keys are considered to be weak references on static targets.

See Map for documentation details.

See also:

Constructor

new()

Creates a new WeakMap.

Methods

get(key:K):Null<V>

iterator():Iterator<V>

Available on python, php, flash, lua, hl, neko, js, cpp, cs, macro

iterator():Iterator<V>

Available on java

Returns an iterator of all values in the hashtable. Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration

keys():Iterator<K>

Available on python, php, flash, lua, hl, neko, js, cpp, cs, macro

keys():Iterator<K>

Available on java

Returns an iterator of all keys in the hashtable. Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration

set(key:K, value:V):Void

toString():String

Available on python, php, flash, lua, hl, neko, js, cpp, cs, macro

toString():String

Available on java

Returns an displayable representation of the hashtable content.