Hash
class Hash<T>Available in flash8, flash, neko, js, php, cpp, cs, java
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 tell if a key has a
Hashtable over a set of elements, using String as keys. Other kinds of keys are not possible on all platforms since they can't always be implemented efficiently.
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 a displayable representation of the hashtable content.
version #18033, modified 2013-04-13 07:30:46 by justsee
0 comment