Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1010410 // linkedObjectsToList

JavaX fragment (include)

1  
static <A> L<A> linkedObjectsToList(A a, S nextField) {
2  
  new L<A> l;
3  
  while (a != null) {
4  
    l.add(a);
5  
    a = castGet(a, nextField);
6  
  }
7  
  ret l;
8  
}

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: #1010410
Snippet name: linkedObjectsToList
Eternal ID of this version: #1010410/1
Text MD5: 3f4b4917e30403c1fa889beb68e8a996
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-15 18:58:04
Source code size: 158 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 402 / 441
Referenced in: [show references]