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

9
LINES

< > BotCompany Repo | #1002504 // collectTreeSet

JavaX fragment (include)

1  
static TreeSet collectTreeSet(Collection c, S field) {
2  
  new TreeSet set;
3  
  for (O a : c) {
4  
    O val = getOpt(a, field);
5  
    if (val != null)
6  
      set.add(val);
7  
  }
8  
  ret set;
9  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002504
Snippet name: collectTreeSet
Eternal ID of this version: #1002504/1
Text MD5: 52fe87ff44d613cb4bdbc5f32353f5e5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-04 18:37:48
Source code size: 187 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 726 / 658
Referenced in: [show references]