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 also:

Constructor

new()

Creates a new ObjectMap.

Methods

exists(key:K):Bool

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

@:has_untypedexists(key:A):Bool

Available on lua

get(key:K):Null<V>

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

@:has_untypedget(key:A):Null<B>

Available on lua

get(key:K):Null<T>

Available on hl

iterator():Iterator<V>

Available on cs, python, 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

@:has_untypediterator():Iterator<B>

Available on lua

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

@:has_untypediterator():Iterator<V>

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

iterator():Iterator<T>

Available on hl

keys():Iterator<K>

Available on cs, python, 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

@:has_untypedkeys():Iterator<A>

Available on lua

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

@:has_untypedkeys():Iterator<K>

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

remove(key:K):Bool

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

@:has_untypedremove(key:A):Bool

Available on lua

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

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

@:has_untypedset(key:A, value:B):Void

Available on lua

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

Available on hl

toString():String

Available on cs, lua, python, java

Returns an displayable representation of the hashtable content.

toString():String

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