class haxe.ds.StringMap<T> implements IMap<String, T>

Available on all platforms

StringMap allows mapping of String keys to arbitrary values.

See Map for documentation details.

Instance Fields

function new():Void

Creates a new StringMap.

function exists(key:String):Bool

function get(key:String):Null<T>

function iterator():Iterator<T>

Available on cpp, flash, flash8, js, neko, php

function iterator():Iterator<T>

Available on 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

function keys():Iterator<String>

Available on cpp, flash, flash8, js, neko, php

function keys():Iterator<String>

Available on 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

function remove(key:String):Bool

function set(key:String, value:T):Void

function toString():String

Available on cpp, flash, flash8, js, neko, php

function toString():String

Available on java

Returns an displayable representation of the hashtable content.