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

6
LINES

< > BotCompany Repo | #1010807 // getFromAll - get a single key from a list of maps

JavaX fragment (include)

1  
static <A, B> L<B> getFromAll(Collection<Map<A, B>> maps, A key) {
2  
  new L<B> l;
3  
  if (maps != null) for (Map<A, B> map : maps)
4  
    addIfNotNull(l, map.get(key));
5  
  ret l;
6  
}

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: #1010807
Snippet name: getFromAll - get a single key from a list of maps
Eternal ID of this version: #1010807/1
Text MD5: 539596b3282d01bce67845d7929fc3cc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-03 21:51:34
Source code size: 178 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 415 / 457
Referenced in: [show references]