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)

static Web ai_getWeb(S id) {
  if (!possibleGlobalID(id)) null;
  ret ai_getWeb(asGlobalID(id));
}

static Web ai_getWeb(GlobalID id) {
  if (id == null) null;
  Web web = allWebsByID().getFirst(id);
  if (web != null) ret web;
  
  for (VirtualNodeIndex i : virtualNodeIndices()) {
    web = i.getWeb(id);
    if (web != null) ret web;
  }
  null;
}

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: 332 / 390
Version history: 6 change(s)
Referenced in: [show references]