static void web_copyRelations(WebNode src, WebNode dest) { if (src == dest) ret; Web web = src.web; assertSame(web, dest.web); for (Pair<WebNode> p : cloneList(keys(web.relations))) { if (p.a == src) web.getRelation(dest, p.b).addLabels(web.getRelation(p).labels); if (p.b == src) web.getRelation(p.a, dest).addLabels(web.getRelation(p).labels); } }
Began life as a copy of #1009837
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: | #1009970 |
Snippet name: | web_copyRelations |
Eternal ID of this version: | #1009970/4 |
Text MD5: | 0901a57b81c8e28cf92f4902317bd020 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-27 23:25:07 |
Source code size: | 393 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 573 / 593 |
Version history: | 3 change(s) |
Referenced in: | [show references] |