IntHash

You are viewing an old version of this entry, click here to see latest version.
class IntHash<T>Available in flash, flash9, neko, js, phpHashtable over a set of elements, using Int as keys. On Flash and Javascript, the underlying structure is an Object. function new() : VoidCreates a new empty hashtable. function exists( key : Int ) : 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 : Int ) : 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<Int>Returns an iterator of all keys in the hashtable. function remove( key : Int ) : BoolRemoves a hashtable entry. Returns true if there was such entry. function set( key : Int, value : T ) : VoidSet a value for the given key. function toString() : StringReturns an displayable representation of the hashtable content.
version #2472, modified 2008-07-28 10:02:44 by api
0 comment