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

5
LINES

< > BotCompany Repo | #1003783 // lookupSnippetID - fuzzy snippet ID lookup in a map

JavaX fragment (include)

1  
static <B> B lookupSnippetID(Map<S, B> map, S id) {
2  
  B b = map.get(formatSnippetID(id));
3  
  if (b != null) ret b;
4  
  ret map.get("" + parseSnippetID(id));
5  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003783
Snippet name: lookupSnippetID - fuzzy snippet ID lookup in a map
Eternal ID of this version: #1003783/1
Text MD5: e36241ac2c601d5685096c44f6e0eb7c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-29 16:14:17
Source code size: 159 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 520 / 1076
Referenced in: [show references]