1 | static DependentCache<SmallestListMultiMap<GlobalID, Web>> allWebsByID_cache = new DependentCache(f allWebsByID_calc, f cachedNodeIndex /*_changeCount*/); |
2 | |
3 | static SmallestListMultiMap<GlobalID, Web> allWebsByID() { |
4 | ret allWebsByID_cache!; |
5 | } |
6 | |
7 | static SmallestListMultiMap<GlobalID, Web> allWebsByID_calc() { |
8 | setAdd(postSoftwareMadeWeb_onNewWeb, f allWebsByID_onNewWeb); |
9 | onTransientWebAdded_do(f allWebsByID_onNewWeb); |
10 | onTransientWebRemoved_do(f allWebsByID_onRemovedWeb); |
11 | ret smallestListMultiMapIndexByMethod(allWebsFromCachedNodeIndex_uncached(), 'globalIDObj); |
12 | } |
13 | |
14 | svoid allWebsByID_onNewWeb(Web web, O[] params) { |
15 | allWebsByID_onNewWeb(web); |
16 | } |
17 | |
18 | svoid allWebsByID_onNewWeb(Web web) { |
19 | lock allWebsByID_cache.lock; |
20 | if (allWebsByID_cache! != null) |
21 | allWebsByID_cache->put(web.globalIDObj(), web); |
22 | } |
23 | |
24 | svoid allWebsByID_onRemovedWeb(Web web) { |
25 | lock allWebsByID_cache.lock; |
26 | if (allWebsByID_cache! != null) |
27 | allWebsByID_cache->remove(web.globalIDObj()); |
28 | } |
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: | #1011311 |
Snippet name: | allWebsByID [cached from index] |
Eternal ID of this version: | #1011311/20 |
Text MD5: | b7a90153a09ffdf161583983f1afaba6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-27 11:07:18 |
Source code size: | 1000 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 579 / 602 |
Version history: | 19 change(s) |
Referenced in: | [show references] |