Difference between revisions of "Core.Actions.MapRemoveItems"

From emotive
Jump to navigation Jump to search
(Created page with "Category:Core == Classification == {{ClassificationActivity |MapRemoveItems | Deletes one or more elements from a map | Action | OTX Core library | MapModif...")
 
Line 2: Line 2:
 
== Classification ==
 
== Classification ==
 
{{ClassificationActivity |MapRemoveItems | Deletes one or more elements from a map | [[Action]] | [[Core|OTX Core library]] | [[MapModifiers related actions]] | [[OutOfBoundsException]] | [[CoreChk039|Core_Chk039]]}}
 
{{ClassificationActivity |MapRemoveItems | Deletes one or more elements from a map | [[Action]] | [[Core|OTX Core library]] | [[MapModifiers related actions]] | [[OutOfBoundsException]] | [[CoreChk039|Core_Chk039]]}}
 +
 +
== OTL Syntax ==
 +
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
MapRemoveItems(MapVariable, {Key1, Key2, ...});
 +
</syntaxhighlight>
  
 
== Description ==
 
== Description ==
Line 12: Line 17:
 
{{TableRowPropertie2| Key | - | [[Term]] | - | [1] | List of one or more keys of type of the map to be deleted from the map}}
 
{{TableRowPropertie2| Key | - | [[Term]] | - | [1] | List of one or more keys of type of the map to be deleted from the map}}
 
|}
 
|}
 +
 +
== OTL Examples ==
 +
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
public procedure main()
 +
{
 +
  Map<Integer,Integer> Map1 = {1:2, 2:3};
 +
 +
  MapRemoveItems(Map1, {1, 2});
 +
}
 +
</syntaxhighlight>
  
 
== See also ==
 
== See also ==

Revision as of 09:46, 2 February 2015

Classification

Name MapRemoveItems
Short Description Deletes one or more elements from a map
Class Action
Extension OTX Core library
Group MapModifiers related actions
Exceptions OutOfBoundsException
Checker Rules Core_Chk039
Standard Compliant Yes

OTL Syntax

MapRemoveItems(MapVariable, {Key1, Key2, ...});

Description

The OTX MapRemoveItems activity deletes one or more elements from a map.

Properties

Name Data Type Class Default Cardinality Description
Map Map Variable - [1] Map of key/values pairs, from which the items are deleted
Key - Term - [1] List of one or more keys of type of the map to be deleted from the map

OTL Examples

public procedure main()
{
   Map<Integer,Integer> Map1 = {1:2, 2:3};

   MapRemoveItems(Map1, {1, 2});
}

See also

Assignment
ProcedureCall
ShiftRight
ShiftLeft
SetBit
ReplaceSubByteField
AppendByteField
ListConcatenate
ListAppendItems
ListInsertItems
ListRemoveItems
ListClear
MapUnion
MapPutItems
MapClear