Breadcrumbs

removeMapValue() Operation

Syntax

set deletedObject = aMap.removeMapValue(aKey)

Semantics

Remove the object from map aMap that is identified by akey.

Substitutables

deletedObject

optional: The map entry identified by aKey that is deleted. 

aMap

An object of type Map.

aKey

Key value identifying the map entry.

Examples

hashMap.removeMapValue("John Smith");
classAdress.png

address is an object of type Address.



icon_download_example.png

<your example path>\E2E Action Language\map\uml\mapBenchmark.xml



There is no operation to clear an entire map, but this goal can easily be achieved by two action script statements.

local entries = hashMap.getMapEntries();
apply hashMap.removeMapValue(element.key) to entries;
clearMapDiagram.png