Util.HashMap.putObject()
Signature
putObject(String mapID, String key, Object value)
Description
Maps an object for a specified key in a specified map.
If the map is non-existent, returns null.
Parameters
Name | Type | Description |
mapID | String | The String ID of the map in which the mapping is added. |
key | String | The String key for which the value is mapped. |
value | Object | The Object value to be added. |
Returns
Type | Description |
String | value . |
Example
Object result = HashMap.put ("MyMap", "MyKey", "MyValue");
Result is:
result contains: "MyValue".