ObjectMap

haxe.ds.ObjectMap (Class)
Implements: haxe.IMap

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: https://haxe.org/manual/std-Map.html

Instance Members

set(key: haxe.ds.ObjectMap.K, value: haxe.ds.ObjectMap.V): Void

See Map.set

Name Type
key haxe.ds.ObjectMap.K
value haxe.ds.ObjectMap.V

get(key: haxe.ds.ObjectMap.K): Null<haxe.ds.ObjectMap.V>

See Map.get

Name Type
key haxe.ds.ObjectMap.K
Returns
Null<haxe.ds.ObjectMap.V>

remove(key: haxe.ds.ObjectMap.K): Bool

See Map.remove

Name Type
key haxe.ds.ObjectMap.K
Returns
Bool

keys(): Iterator

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.

Returns
Iterator

iterator(): Iterator

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.

Returns
Iterator

keyValueIterator(): KeyValueIterator

See Map.keyValueIterator

Returns
KeyValueIterator

new(): Void

Creates a new ObjectMap.

Private Members

assignId(obj: AnonStruct): Int
Name Type
obj AnonStruct
Returns
Int

getId(obj: AnonStruct): Int
Name Type
obj AnonStruct
Returns
Int