static Map<S, BWImage> loadBWImage_cached_cache = synchroTreeMap(); // s = snippetIDOrURL static BWImage loadBWImage_cached(String s) { BWImage img = loadBWImage_cached_cache.get(s); if (img == null) loadBWImage_cached_cache.put(s, img = new BWImage(loadBufferedImage(s))); ret img; }
Began life as a copy of #1004156
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005886 |
Snippet name: | loadBWImage_cached |
Eternal ID of this version: | #1005886/1 |
Text MD5: | 85af8221b3a1b90ed4e2a854de686bfd |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-12 14:18:58 |
Source code size: | 305 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 544 / 568 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1007793 - loadImage2_cached - load BufferedImage, cached in memory |