StringMap

class haxe.ds.StringMap<T>implements IMap<StringT>Available in flash8, flash, neko, js, php, cpp, cs, javaHashtable over a set of elements, using String as keys. Other kind of keys are not possible on all platforms since they can't always be implemented efficiently. function new() : VoidCreates a new empty hashtable. function exists( key : String ) : BoolTells if a value exists for the given key. In particular, it's useful to tells if a key has a null value versus no value. function get( key : String ) : Null<T>Get a value for the given key. function iterator() : Iterator<T>Available in cs, javaReturns an iterator of all values in the hashtable. function iterator() : Iterator<T>Available in flash8, flash, neko, js, php, cppReturns an iterator of all values in the hashtable. function keys() : Iterator<String>Available in cs, javaReturns an iterator of all keys in the hashtable. function keys() : Iterator<String>Available in flash8, flash, neko, js, php, cppReturns an iterator of all keys in the hashtable. function remove( key : String ) : BoolRemoves a hashtable entry. Returns true if there was such entry. function set( key : String, value : T ) : VoidSet a value for the given key. function toString() : StringReturns an displayable representation of the hashtable content.
version #18518, modified 2013-05-08 10:50:53 by api
0 comment