OCLOperators maxValue
No edit summary
(Updated Edited template to July 12, 2025.)
 
(9 intermediate revisions by 3 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"
{| class="wikitable"
!Expression
!Expression
!Result
!Result
|-
|-
|(Bag{3, 2, 1, 6})->minValue
|(Bag{3, 2, 1, 6})->maxValue
|6
|6
|-
|-
Line 10: Line 11:
|'2019-01-01'
|'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'