OCLOperators maxValue
(Created page with "Returns the highest (maximum) value from a collection of simple value objects")
 
(Updated Edited template to July 12, 2025.)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Returns the highest (maximum) value from a collection of simple value objects
<message>Write the content here to display this box</message>
Returns the highest (maximum) value from a collection of simple value objects.
{| class="wikitable"
!Expression
!Result
|-
|(Bag{3, 2, 1, 6})->maxValue
|6
|-
|Bag{DateTime.Parse('2019-01-01'), DateTime.Parse('2018-12-01')}->maxValue
|'2019-01-01'
|}
[[Category:OCL General Operators]]
{{Edited|July|12|2025}}

Latest revision as of 05:57, 20 January 2025

This page was created by Lars.olofsson@mdriven.net on 2020-01-07. Last edited by Edgar on 2025-01-20.

Returns the highest (maximum) value from a collection of simple value objects.

Expression Result
(Bag{3, 2, 1, 6})->maxValue 6
Bag{DateTime.Parse('2019-01-01'), DateTime.Parse('2018-12-01')}->maxValue '2019-01-01'