OCLOperatorsNotEmpty
(Automatically adding template at the end of the page.)
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<message>Validated Feb 2025</message>


Returns true if ''self'' contains at least one element - otherwise, returns false.
Returns true if ''self'' contains at least one element - otherwise, returns false.
Line 5: Line 6:
!Result
!Result
|-
|-
|Sequence{2, 'a'}->notEmpty()
|Sequence{2, 3}->notEmpty()
|true
|true
|-
|-
|Sequence{null}->notEmpty()
|Sequence{nil}->notEmpty()
|true
|true
|-
|-
|Sequence{}->notEmpty()
|<class>.EmptyList->notEmpty()
|false
|false
|}
|}
[[Category:OCLOperators]]
[[Category:OCLOperators]]
{{Edited|July|12|2024}}
{{Edited|July|12|2025}}

Latest revision as of 21:43, 25 February 2025

This page was created by Peter on 2019-11-22. Last edited by Lars.olofsson@mdriven.net on 2025-02-25.


Returns true if self contains at least one element - otherwise, returns false.

Expression Result
Sequence{2, 3}->notEmpty() true
Sequence{nil}->notEmpty() true
<class>.EmptyList->notEmpty() false