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.

See:

Constructor

new ()

Creates a new ObjectMap.

Methods

exists (key:K):Bool

Available on python, neko, java, macro, cpp, js, php, flash, cs

exists (key:A):Bool

Available on lua

get (key:K):Null<V>

Available on python, neko, java, macro, cpp, js, php, flash, cs

get (key:A):Null<B>

Available on lua

iterator ():Iterator<V>

Available on python, neko, macro, cpp, js, php, flash

iterator ():Iterator<V>

Available on java, cs

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

iterator ():Iterator<B>

Available on lua

keys ():Iterator<K>

Available on python, neko, macro, cpp, js, php, flash

keys ():Iterator<K>

Available on java, cs

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

keys ():Iterator<A>

Available on lua

remove (key:K):Bool

Available on python, neko, java, macro, cpp, js, php, flash, cs

remove (key:A):Bool

Available on lua

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

Available on python, neko, java, macro, cpp, js, php, flash, cs

set (key:A, value:B):Void

Available on lua

toString ():String

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

toString ():String

Available on java, cs

Returns an displayable representation of the hashtable content.