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

copy():ObjectMap<K, V>

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

copy():ObjectMap<K, T>

Available on hl

copy():ObjectMap<A, B>

Available on lua

exists(key:K):Bool

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

@:has_untypedexists(key:A):Bool

Available on lua

get(key:K):Null<V>

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

get(key:K):Null<T>

Available on hl

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

Available on lua

iterator():Iterator<V>

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

See Map.iterator

(cs, java) 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

See Map.iterator

(cs, java) 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

See Map.iterator

(cs, java) Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration.

@:runtimeinlinekeyValueIterator():KeyValueIterator<K, V>

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

@:runtimeinlinekeyValueIterator():KeyValueIterator<K, T>

Available on hl

@:runtimeinlinekeyValueIterator():KeyValueIterator<A, B>

Available on lua

keys():Iterator<K>

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

See Map.keys

(cs, java) 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

See Map.keys

(cs, java) Implementation detail: Do not set() any new value while iterating, as it may cause a resize, which will break iteration.

remove(key:K):Bool

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

@:has_untypedremove(key:A):Bool

Available on lua

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

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

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

Available on hl

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

Available on lua