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

inlineclear():Void

@:has_untypedinlineexists(key:K):Bool

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

@:has_untypediterator():Iterator<V>

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_untypedkeys():Iterator<K>

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_untypedremove(key:K):Bool

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