1 | static Map<S, BWImage> loadBWImage_cached_cache = synchroTreeMap(); |
2 | |
3 | // s = snippetIDOrURL |
4 | static BWImage loadBWImage_cached(String s) { |
5 | BWImage img = loadBWImage_cached_cache.get(s); |
6 | if (img == null) |
7 | loadBWImage_cached_cache.put(s, img = new BWImage(loadBufferedImage(s))); |
8 | ret img; |
9 | } |
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: | 543 / 568 |
Referenced in: | [show references] |