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

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

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

@:has_untypedexists(key:K):Bool

@:has_untypedremove(key:K):Bool

@: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_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.