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, python, neko, js, php, macro, jvm

copy():ObjectMap<A, B>

Available on lua

copy():ObjectMap<K, T>

Available on hl

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

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

@:has_untypedexists(key:A):Bool

Available on lua

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

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

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

Available on lua

get(key:K):Null<T>

Available on hl

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

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

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.

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.

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

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

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

Available on lua

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

Available on hl

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

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

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, python, neko, js, php, hl, macro, jvm

@:has_untypedremove(key:A):Bool

Available on lua

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

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

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

Available on lua

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

Available on hl

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