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

@:keep@:keepnew()

Creates a new ObjectMap.

Methods

@:has_untyped@:keep@:keepclear():Void

@:keep@:keepcopy():ObjectMap<K, V>

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

copy():ObjectMap<K, T>

Available on hl

copy():ObjectMap<A, B>

Available on lua

@:has_untyped@:keep@:keepexists(key:K):Bool

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

@:has_untypedexists(key:A):Bool

Available on lua

@:has_untyped@:keep@:keepget(key:K):Null<V>

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

get(key:K):Null<T>

Available on hl

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

Available on lua

@:has_untyped@:keep@:keepiterator():Iterator<V>

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

See Map.iterator

(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

(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

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

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

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

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

Available on hl

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

Available on lua

@:has_untyped@:keep@:keepkeys():Iterator<K>

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

See Map.keys

(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

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

@:has_untyped@:keep@:keepremove(key:K):Bool

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

@:has_untypedremove(key:A):Bool

Available on lua

@:has_untyped@:keep@:keepset(key:K, value:V):Void

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

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

Available on hl

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

Available on lua

@:has_untyped@:keep@:keeptoString():String