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

Available on all platforms

ObjectMap allows mapping of object keys to arbitrary values.

On static targets, the keys are considered to be strong references. Refer to haxe.ds.WeakMap for a weak reference version.

See Map for documentation details.

Instance Fields

function new():Void

Creates a new ObjectMap.

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.