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

16
LINES

< > BotCompany Repo | #1009352 // getSnippetTitles_cached - returns formatted snippet IDs as keys

JavaX fragment (include)

1  
static Map<S, S> getSnippetTitles_cached(Collection<S> ids) ctex {
2  
  new L<S> remaining;
3  
  new HashMap<S, S> map;
4  
  for (S id : ids) {
5  
    S title = getSnippetTitle_cached_probe(id);
6  
    if (title != null)
7  
      map.put(fsI(id), title);
8  
    else
9  
      remaining.add(id);
10  
  }
11  
  SS map2 = getSnippetTitles(remaining);
12  
  for (S id : keys(map2))
13  
    getSnippetTitle_cached_put(id, map2.get(id));
14  
  map.putAll(map2);
15  
  ret map;
16  
}

Author comment

Began life as a copy of #1003764

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: #1009352
Snippet name: getSnippetTitles_cached - returns formatted snippet IDs as keys
Eternal ID of this version: #1009352/4
Text MD5: 49140863cae3addd1aa42dc9ddfdbe10
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-24 16:35:10
Source code size: 439 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 472 / 526
Version history: 3 change(s)
Referenced in: [show references]