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

10
LINES

< > BotCompany Repo | #1010440 // collectNotNull

JavaX fragment (include)

static L collectNotNull(Iterable c, S field) {
  new L l;
  fOr (O a : c)
    addIfNotNull(l, getOpt(a, field));
  ret l;
}

static L mapMethodLike collectNotNull(S field, Iterable c) {
  ret collectNotNull(c, field);
}

Author comment

Began life as a copy of #1002318

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010440
Snippet name: collectNotNull
Eternal ID of this version: #1010440/5
Text MD5: 1ab45c2ad6cf73feb02cc3f75ae80a0d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-18 22:26:22
Source code size: 228 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 385 / 454
Version history: 4 change(s)
Referenced in: [show references]