Difference between revisions of "Core.Actions.MapUnion"
Jump to navigation
Jump to search
(Created page with "Category:Core == Classification == {{ClassificationActivity | MapUnion | Joins two maps together | Action | OTX Core library | [[MapModifiers related actions]...") |
|||
Line 2: | Line 2: | ||
== Classification == | == Classification == | ||
{{ClassificationActivity | MapUnion | Joins two maps together | [[Action]] | [[Core|OTX Core library]] | [[MapModifiers related actions]] | - | [[CoreChk042|Core_Chk042]]}} | {{ClassificationActivity | MapUnion | Joins two maps together | [[Action]] | [[Core|OTX Core library]] | [[MapModifiers related actions]] | - | [[CoreChk042|Core_Chk042]]}} | ||
+ | |||
+ | == OTL Syntax == | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | MapUnion(MapVariable, {{MapTerm1}, {MapTerm2}, ...}); | ||
+ | </syntaxhighlight> | ||
== Description == | == Description == | ||
Line 13: | Line 18: | ||
{{TableRowPropertie2| OtherMap | [[Map]] | [[Term]] | - | [1] | Map of key/value pairs, which are connected with the original Map}} | {{TableRowPropertie2| OtherMap | [[Map]] | [[Term]] | - | [1] | Map of key/value pairs, which are connected with the original Map}} | ||
|} | |} | ||
+ | |||
+ | == OTL Examples == | ||
+ | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | public procedure main() | ||
+ | { | ||
+ | Map<Integer,Integer> Map1; | ||
+ | |||
+ | MapUnion(Map1, {{1:2, 2:3}}); | ||
+ | } | ||
+ | </syntaxhighlight> | ||
== See also == | == See also == |
Revision as of 09:33, 2 February 2015
Classification
Name | MapUnion |
Short Description | Joins two maps together |
Class | Action |
Extension | OTX Core library |
Group | MapModifiers related actions |
Exceptions | - |
Checker Rules | Core_Chk042 |
Standard Compliant | Yes |
OTL Syntax
MapUnion(MapVariable, {{MapTerm1}, {MapTerm2}, ...});
Description
The OTX MapUnion activity joins two or more maps together. The map contains all the original features as well as all other elements of the map.
![]()
Does the other map a key that is also present in the original map, the corresponding value in the original map is overwritten.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Map | Map | Variable | - | [1] | Map of key / value pairs, which is connected to the other map |
OtherMap | Map | Term | - | [1] | Map of key/value pairs, which are connected with the original Map |
OTL Examples
public procedure main()
{
Map<Integer,Integer> Map1;
MapUnion(Map1, {{1:2, 2:3}});
}
See also
Assignment
ProcedureCall
ShiftRight
ShiftLeft
SetBit
ReplaceSubByteField
AppendByteField
ListConcatenate
ListAppendItems
ListInsertItems
ListRemoveItems
ListClear
MapPutItems
MapRemoveItems
MapClear