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

16
LINES

< > BotCompany Repo | #1011760 // ai_getWeb (by ID)

JavaX fragment (include)

1  
static Web ai_getWeb(S id) {
2  
  if (!possibleGlobalID(id)) null;
3  
  ret ai_getWeb(asGlobalID(id));
4  
}
5  
6  
static Web ai_getWeb(GlobalID id) {
7  
  if (id == null) null;
8  
  Web web = allWebsByID().getFirst(id);
9  
  if (web != null) ret web;
10  
  
11  
  for (VirtualNodeIndex i : virtualNodeIndices()) {
12  
    web = i.getWeb(id);
13  
    if (web != null) ret web;
14  
  }
15  
  null;
16  
}

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: #1011760
Snippet name: ai_getWeb (by ID)
Eternal ID of this version: #1011760/7
Text MD5: ac87db420045c324e9931855aaa9840d
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-28 12:05:51
Source code size: 365 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 339 / 397
Version history: 6 change(s)
Referenced in: [show references]