static Set allEmbeddingObjects(O o) { Set set = identityHashSet(); allEmbeddingObjects_get(o, set); ret set; } svoid allEmbeddingObjects_get(O o, Set set) { if (!set.add(o)) ret; new Matches m; for (S field : allFields(o)) if (startsWith(field, "this$", m) && isInteger(m.rest())) allEmbeddingObjects_get(get(o, field), set); }
Began life as a copy of #1015800
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: | #1015801 |
Snippet name: | allEmbeddingObjects |
Eternal ID of this version: | #1015801/3 |
Text MD5: | f77903fa662bd0662f0d45537bbddf9f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-27 22:20:47 |
Source code size: | 362 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 415 / 432 |
Version history: | 2 change(s) |
Referenced in: | [show references] |