OCLOperators includes
Returns true if the object is contained in self and false otherwise.
| Expression | Result |
|---|---|
| Sequence{2,3,4}->includes(5) | false |
| Sequence{2,3,4}->includes(2) | true |
Example
Given a Class Car, we can run this to find if there is a car with Name Toyota.
Note that this ocl operator is case-sensitive .
Car.allInstances.Name.includes('toyota')
