Hash
class Hash<T>Available in flash, flash9, neko, js, phpHashtable 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>Returns an iterator of all values in the hashtable.
function keys() : Iterator<String>Returns 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 #2470, modified 2008-07-28 10:02:43 by api