class org.aswing.util.HashMap<K, V>

Instance Fields

function new(): Void

function clear(): Void

Clears this HashMap so that it contains no keys no values.

function clone(): HashMap<K, V>

Return a same copy of HashMap object

function containsKey(key:K): Bool

Tests if the specified object is a key in this HashMap. This operation is very fast if it is a string. @param key The key whose presence in this map is to be tested @return true if this map contains a mapping for the specified

function containsValue(value:V): Bool

Tests if some key maps into the specified value in this HashMap. This operation is more expensive than the containsKey method.

function eachKey(func:Dynamic ->Void): Void

Call func(key) for each key.

func

the function to call

function eachValue(func:Dynamic ->Void): Void

Call func(value) for each value.

func

the function to call

function exists(k:K): Bool

function get(k:K): Null<V>

function getValue(key:K): Dynamic

Same functionity method with different name to get. @param key the key whose associated value is to be returned. @return the value to which this map maps the specified key, or null if the map contains no mapping for this key * or it is null value originally.

function isEmpty(): Bool

Returns if this HashMap maps no keys to values.

function iterator(): Iterator<V>

function keys(): Iterator<K>

function put(key:K, value:V): V

Associates the specified value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced. If value is null, means remove the key from the map. @param key key with which the specified value is to be associated. @param value value to be associated with the specified key. null to remove the key. @return previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the HashMap previously associated null with the specified key.

function remove(k:K): Bool

function set(k:K, v:V): Void

function size(): Int

Returns the number of keys in this HashMap.

function values(): Iterator<V>