Core.Terms.MapContainsValue

From emotive
Revision as of 03:48, 14 August 2014 by Nb (talk | contribs) (Created page with "Category:Core == Classification == {{ClassificationActivity | MapContainsValue | Checks whether a value in a map is found | Term | OTX Core library | Map re...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Classification

Name MapContainsValue
Short Description Checks whether a value in a map is found
Class Term
Extension OTX Core library
Group Map related terms
Exceptions -
Checker Rules Core_Chk041
Standard Compliant Yes

Pseudo-Code Syntax

Value = MapContainsValue(MapTerm, value)

Description

MapContainsValue is a term, which returns true as a result, if the value specified in the map is found, false otherwise.

Exclamation.png Important: Please keep in mind that this TermActivity in the form of an activity exists and no text can be entered. According to the respective ActionNode can further properties are added.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
Boolean Return true if the value is found, otherwise false.

Properties

Name Data Type Class Default Cardinality Description
MapTerm Map Term - [1] Map, in which the key will be searched
Value - Term - [1] Expression, which is locate in the map. Is the type corresponding to the type of the values of the map.

Examples

Map<Integer, String> map = {{1, "text1"}, {2, "text2"}}
Boolean result = MapContainsValue(map, "text1")
//Returns result = true

See also

MapContainsKey
MapGetSize
MapGetKeyList
MapGetValueList
MapCopy