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

7
LINES

< > BotCompany Repo | #1004370 // getWhere - get elements that match a data condition (fields+values)

JavaX fragment (include)

1  
static <A> L<A> getWhere(Collection<A> c, O... data) {
2  
  new L l;
3  
  for (A x : c)
4  
    if (checkFields(x, data))
5  
      l.add(x);
6  
  ret l;
7  
}

Author comment

Began life as a copy of #1003903

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: #1004370
Snippet name: getWhere - get elements that match a data condition (fields+values)
Eternal ID of this version: #1004370/1
Text MD5: 37bc77a3706ef0a23f499efbd68275f8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-14 16:05:48
Source code size: 144 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 633 / 573
Referenced in: [show references]