OCLOperators count
(Automatically adding template at the end of the page.)
(Replacing message template with parser tag)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>
=== count ( object : T ) : Integer ===
=== count ( object : T ) : Integer ===
Returns how many times ''object'' is in the collection ''self''.  
Returns how many times ''object'' is in the collection ''self''.  

Latest revision as of 07:50, 17 June 2024

count ( object : T ) : Integer

Returns how many times object is in the collection self.

Expression Result
Sequence{2.3, 5.2}->count(5.2) 1
Set{3, 'test', 4.0, 4, 4.0, 'test'}->count(null) 0
Set{3, null, 4.0, null, 'test'}->count(null) 1
Bag{3, null, 4.0, null, 'test'}->count(null) 2
This page was edited 94 days ago on 06/17/2024. What links here