static Map web_copyUsingPartialMap(Web web, Web w, Map<WebNode> map) { map = new HashMap(map); for (WebNode node : web.nodes) if (!(node instanceof WebRelation)) { if (!map.containsKey(node)) map.put(node, cloneNodeToWeb(node, w)); } for (Pair<WebNode> p : keys(web.relations)) w.getRelation(assertNotNull(map.get(p.a)), assertNotNull(map.get(p.b))).addLabels(web.getRelation(p).labels); ret map; }
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: | #1010595 |
Snippet name: | web_copyUsingPartialMap |
Eternal ID of this version: | #1010595/2 |
Text MD5: | 21bf31cb6aca02c27c3068409d3f88bd |
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-22 18:25:53 |
Source code size: | 431 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 486 / 513 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |