Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1010456 // clustersForWeb

JavaX fragment (include)

static WeakHashMap<Web, Clusters<S>> clustersForWeb_map = new WeakHashMap;

static Clusters<S> clustersForWeb(Web web) {
  synchronized(clustersForWeb_map) {
    Clusters<S> c = clustersForWeb_map.get(web);
    if (c == null) clustersForWeb_map.put(web, c = new HashMap);
    ret c;
  }
}

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: #1010456
Snippet name: clustersForWeb
Eternal ID of this version: #1010456/1
Text MD5: 0386cd7717795d14a83c796c05f06eae
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-18 01:56:32
Source code size: 296 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 496 / 492
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)