OCLOperators includesAll
No edit summary
(Automatically adding template at the end of the page.)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Returns true if all the elements in the parameter list are included in the list.
Returns true if all the elements in the parameter list are included in the list.


Returns true if all element of *c2* are contained in ''self'', false otherwise.
Returns true if all elements of *c2* are contained in ''self -'' otherwise, returns false.
{| class="wikitable"
{| class="wikitable"
!Expression
!Expression
Line 12: Line 12:
|false
|false
|}
|}
[[Category:OCL Collection Operators]]
{{Edited|July|12|2024}}

Latest revision as of 15:42, 10 February 2024

Returns true if all the elements in the parameter list are included in the list.

Returns true if all elements of *c2* are contained in self - otherwise, returns false.

Expression Result
Sequence{2.3, 5.2, 'a', 3, null}->includesAll(Set{3, null}) true
Sequence{2.3, 5.2, 'a', 3}->includesAll(Set{3, null}) false
This page was edited 95 days ago on 02/10/2024. What links here