class haxe.ds.WeakMap<K, V> implements IMap<K, V>

Available on all platforms

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.

Instance Fields

function new():Void

Creates a new WeakMap.

function exists(key:K):Bool

function get(key:K):Null<V>

function iterator():Iterator<V>

Available on cpp, flash, flash8, js, neko, php

function 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

function keys():Iterator<K>

Available on cpp, flash, flash8, js, neko, php

function 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

function remove(key:K):Bool

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

function toString():String

Available on cpp, flash, flash8, js, neko, php

function toString():String

Available on java

Returns an displayable representation of the hashtable content.