OCLOperators includesAll
(Created page with "Does the collection include the whole other collection")
 
(Replacing message template with parser tag)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Does the collection include the whole other collection
<message>Write the content here to display this box</message>
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.
{| class="wikitable"
!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
|}
[[Category:OCL Collection Operators]]
{{Edited|July|12|2024}}

Latest revision as of 07:51, 17 June 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 06/17/2024. What links here