IntMap allows mapping of Int keys to arbitrary values.

See Map for documentation details.

See also:

Constructor

new()

Creates a new IntMap.

Methods

get(key:Int):Null<T>

@:has_untypediterator():Iterator<T>

Available on lua, cs, python, 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

@:has_untypediterator():Iterator<T>

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

keys():Iterator<Int>

Available on lua, cs, python, 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

@:has_untypedkeys():Iterator<Int>

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

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

toString():String

Available on lua, cs, python, java

Returns an displayable representation of the hashtable content.

toString():String

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