Generic string->value map that is stored in a given block.
This class is described in detail in Generic Containers article.
decrease (key:String, ?value:Int):Void
Decreases Int
value by a given amount.
Parameters:
key
Map key.
value
Amount to decrease by. Defaults to 1.
getDynamic (key:String):Dynamic
Returns map value as Dynamic
.
Parameters:
key
Map key.
Returns:
Map value. Returns null, if this mapping is not found.
Returns map value as Float
.
Parameters:
key
Map key.
Returns:
Map value. Returns 0, if this mapping is not found.
Returns map value as Int
.
Parameters:
key
Map key.
Returns:
Map value. Returns 0, if this mapping is not found.
Returns map value as String
.
Parameters:
key
Map key.
Returns:
Map value. Returns null, if this mapping is not found.
increase (key:String, ?value:Int):Void
Increases Int
value by a given amount.
Parameters:
key
Map key.
value
Amount to increase by. Defaults to 1.
set (key:String, val:Dynamic):Void
Maps key to a given value.
If the new value equals the old one, nothing happens.
If the new value is 0, the mapping will be deleted.
Will call the setPre()
and setPost()
hooks.
Parameters:
key
Map key.
val
New value.
dynamic setPost (key:String, oldValue:Dynamic, value:Dynamic):Void
This method is called after mapping values.
Parameters:
key
Map key.
oldValue
Old value.
value
New value.