1 | static HashMap<S, O> loadFunc_cache = new HashMap; |
2 | |
3 | static O loadFunc_cached(S code) { |
4 | synchronized(loadFunc_cache) { |
5 | O c = loadFunc_cache.get(code); |
6 | if (c == null) |
7 | loadFunc_cache.put(code, c = loadFunc(code)); |
8 | ret c; |
9 | } |
10 | } |
Began life as a copy of #1007946
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: | #1008527 |
Snippet name: | loadFunc_cached |
Eternal ID of this version: | #1008527/3 |
Text MD5: | 2a1982c614afc1b556afb46e56f2edba |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-21 10:28:55 |
Source code size: | 252 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 470 / 506 |
Version history: | 2 change(s) |
Referenced in: | [show references] |