package haxe.ds
implements IMap<K, V>
Available on all platformsObjectMap 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:
new ()
Creates a new ObjectMap.
exists (key:A ):Bool
Available on lua
Map.exists
exists (key:K ):Bool
Available on cpp, cs, flash, hl, java, js, macro, neko, php, python
Map.exists
get (key:K ):Null<V>
Available on cpp, cs, flash, java, js, macro, neko, php, python
Map.get
get (key:A ):Null<B>
Available on lua
Map.get
get (key:K ):Null<T>
Available on hl
Map.get
iterator ():Iterator<V>
Available on cs, java
Returns an iterator of all values in the hashtable. 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
Map.iterator
iterator ():Iterator<V>
Available on cpp, flash, js, macro, neko, php, python
Map.iterator
iterator ():Iterator<T>
Available on hl
Map.iterator
keys ():Iterator<K>
Available on cs, java
Returns an iterator of all keys in the hashtable. 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
Map.keys
keys ():Iterator<K>
Available on cpp, flash, hl, js, macro, neko, php, python
Map.keys
remove (key:K ):Bool
Available on cpp, cs, flash, hl, java, js, macro, neko, php, python
Map.remove
remove (key:A ):Bool
Available on lua
Map.remove
set (key:K, value:T ):Void
Available on hl
Map.set
set (key:K, value:V ):Void
Available on cpp, cs, flash, java, js, macro, neko, php, python
Map.set
set (key:A, value:B ):Void
Available on lua
Map.set
toString ():String
Available on cs, java
Returns an displayable representation of the hashtable content.
toString ():String
Available on cpp, flash, hl, js, lua, macro, neko, php, python
Map.toString
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/haxe/ds/ObjectMap.html