1 | static DependentCache<MultiMap<GlobalID, Web>> allWebsByID_cache = new DependentCache(f allWebsByID_calc, f cachedNodeIndex /*_changeCount*/); |
2 | |
3 | static MultiMap<GlobalID, Web> allWebsByID() {
|
4 | ret allWebsByID_cache!; |
5 | } |
6 | |
7 | static MultiMap<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 multiMapIndexByMethod(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 | } |
Began life as a copy of #1011311
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: | #1012286 |
| Snippet name: | allWebsByID before SmallestListMultiMap |
| Eternal ID of this version: | #1012286/1 |
| Text MD5: | fc5e26048a9bbd1097844170e29c9c95 |
| 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:04:01 |
| Source code size: | 952 bytes / 28 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 535 / 583 |
| Referenced in: | [show references] |