W3cubDocs

/Haxe

ObjectMap<K, V>

package haxe.ds

implements IMap<K, V>

Available on all platforms

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

clear():Void

See Map.clear

copy():ObjectMap<K, V>

Available on cs, php, js, neko, cpp, macro, java, python, flash

See Map.copy

copy():ObjectMap<A, B>

Available on lua

See Map.copy

copy():ObjectMap<K, T>

Available on hl

See Map.copy

exists(key:K):Bool

Available on cs, php, js, neko, cpp, macro, java, python, hl, flash

See Map.exists

exists(key:A):Bool

Available on lua

See Map.exists

get(key:K):Null<V>

Available on cs, php, js, neko, cpp, macro, java, python, flash

See Map.get

get(key:A):Null<B>

Available on lua

See Map.get

get(key:K):Null<T>

Available on hl

See Map.get

iterator():Iterator<V>

Available on cs, php, js, neko, cpp, macro, java, python, flash

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.

iterator():Iterator<B>

Available on lua

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.

iterator():Iterator<T>

Available on hl

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.

inlinekeyValueIterator():KeyValueIterator<K, V>

Available on cs, php, js, neko, cpp, macro, java, python, flash

See Map.keyValueIterator

inlinekeyValueIterator():KeyValueIterator<A, B>

Available on lua

See Map.keyValueIterator

inlinekeyValueIterator():KeyValueIterator<K, T>

Available on hl

See Map.keyValueIterator

keys():Iterator<K>

Available on cs, php, js, neko, cpp, macro, java, python, hl, flash

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.

keys():Iterator<A>

Available on lua

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.

remove(key:K):Bool

Available on cs, php, js, neko, cpp, macro, java, python, hl, flash

See Map.remove

remove(key:A):Bool

Available on lua

See Map.remove

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

Available on cs, php, js, neko, cpp, macro, java, python, flash

See Map.set

set(key:A, value:B):Void

Available on lua

See Map.set

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

Available on hl

See Map.set

toString():String

See Map.toString

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/haxe/ds/ObjectMap.html