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

@:has_untypedexists (key:K):Bool

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

@:has_untypedexists (key:A):Bool

Available on lua

@:has_untypedget (key:K):Null<V>

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

get (key:K):Null<T>

Available on hl

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

Available on lua

@:has_untypediterator ():Iterator<V>

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

iterator ():Iterator<V>

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

iterator ():Iterator<T>

Available on hl

@:has_untypediterator ():Iterator<B>

Available on lua

@:has_untypedkeys ():Iterator<K>

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

keys ():Iterator<K>

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

@:has_untypedremove (key:K):Bool

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

@:has_untypedremove (key:A):Bool

Available on lua

@:has_untypedset (key:K, value:V):Void

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

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

Available on hl

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

Available on lua

@:has_untypedtoString ():String

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

toString ():String

Available on cs, java

Returns an displayable representation of the hashtable content.