IntMap allows mapping of Int keys to arbitrary values.

See Map for documentation details.

See also:

Constructor

@:keep@:keepnew()

Creates a new IntMap.

Methods

@:keep@:keepcopy():IntMap<T>

@:has_untyped@:keep@:keepexists(key:Int):Bool

@:has_untyped@:keep@:keepget(key:Int):Null<T>

@:has_untyped@:keep@:keepiterator():Iterator<T>

Available on cpp, lua, macro, js, flash, hl, neko, php, python

iterator():Iterator<T>

Available on java, cs

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

@:has_untyped@:keep@:keepkeys():Iterator<Int>

Available on cpp, lua, macro, js, flash, hl, neko, php, python

keys():Iterator<Int>

Available on java, cs

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

@:has_untyped@:keep@:keepremove(key:Int):Bool

@:has_untyped@:keep@:keepset(key:Int, value:T):Void

@:has_untyped@:keep@:keeptoString():String

Available on cpp, lua, macro, js, flash, hl, neko, php, python

toString():String

Available on java, cs

Returns an displayable representation of the hashtable content.