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 php, cpp, js, java, python, macro, cs, flash, neko

copy():ObjectMap<A, B>

Available on lua

copy():ObjectMap<K, T>

Available on hl

exists(key:K):Bool

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

@:has_untypedexists(key:A):Bool

Available on lua

get(key:K):Null<V>

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

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

Available on lua

get(key:K):Null<T>

Available on hl

@:ifFeature("dynamic_read.iterator","anon_optional_read.iterator","anon_read.iterator")iterator():Iterator<V>

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

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.

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.

@:ifFeature("dynamic_read.keyValueIterator","anon_optional_read.keyValueIterator","anon_read.keyValueIterator")inlinekeyValueIterator():KeyValueIterator<K, V>

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

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

Available on lua

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

Available on hl

keys():Iterator<K>

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

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 php, cpp, js, java, python, macro, cs, flash, hl, neko

@:has_untypedremove(key:A):Bool

Available on lua

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

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

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

Available on lua

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

Available on hl