Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1003903 // countWhere - count elements that match a data condition (fields+values)

JavaX fragment (include)

1  
static int countWhere(Collection c, O... data) {
2  
  int n = 0;
3  
  if (c != null) for (O x : c)
4  
    if (checkFields(x, data))
5  
      ++n;
6  
  ret n;
7  
}

Author comment

Began life as a copy of #1003173

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003903
Snippet name: countWhere - count elements that match a data condition (fields+values)
Eternal ID of this version: #1003903/2
Text MD5: fc0e4be05f1d3f26de373a1f354a84c2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-25 23:52:27
Source code size: 150 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 605 / 601
Version history: 1 change(s)
Referenced in: [show references]