1 | static Map web_copyUsingPartialMap(Web web, Web w, Map<WebNode> map) { |
2 | map = new HashMap(map); |
3 | for (WebNode node : web.nodes) if (!(node instanceof WebRelation)) { |
4 | if (!map.containsKey(node)) |
5 | map.put(node, cloneNodeToWeb(node, w)); |
6 | } |
7 | for (Pair<WebNode> p : keys(web.relations)) |
8 | w.getRelation(assertNotNull(map.get(p.a)), assertNotNull(map.get(p.b))).addLabels(web.getRelation(p).labels); |
9 | ret map; |
10 | } |
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: | 485 / 513 |
Version history: | 1 change(s) |
Referenced in: | [show references] |