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): VoidSee 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): BoolSee Map.remove
| Name | Type |
|---|---|
key |
haxe.ds.ObjectMap.K |
| Returns |
|---|
| Bool |
keys(): IteratorSee 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(): IteratorSee 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(): KeyValueIteratorSee Map.keyValueIterator
| Returns |
|---|
| KeyValueIterator |
new(): VoidCreates 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 |