haXe API Documentation
Back |
Indexclass IntHash<T>
Available in flash, neko, js, flash9, php, cpp
Hashtable over a set of elements, using Int
as keys.
On Flash and Javascript, the underlying structure is an Object.
- function new() : Void
- function exists(key : Int) : Bool
-
Tells 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) : Bool
-
Removes a hashtable entry. Returns
true
if
there was such entry.
- function set(key : Int, value : T) : Void
-
Set a value for the given key.
- function toString() : String
-
Returns an displayable representation of the hashtable content.
Back |
Index