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

9
LINES

< > BotCompany Repo | #1002504 // collectTreeSet

JavaX fragment (include)

static TreeSet collectTreeSet(Collection c, S field) {
  new TreeSet set;
  for (O a : c) {
    O val = getOpt(a, field);
    if (val != null)
      set.add(val);
  }
  ret set;
}

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: 725 / 657
Referenced in: #1005062 - collectUnique
#1005063 - collectMultiSet
#1006323 - collectHashSet
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1018020 - collectInCISet
#3000382 - Answer for ferdie (>> t = 1, f = 0)