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

9
LINES

< > BotCompany Repo | #1009303 // threadInfosToThreads

JavaX fragment (include)

static L<Thread> threadInfosToThreads(L<ThreadInfo> l) {
  new HashMap<Long, Thread> map;
  for (Thread t : keys(Thread.getAllStackTraces()))
    map.put(t.getId(), t);
  new L<Thread> out;
  for (ThreadInfo t : l)
    addIfNotNull(out, map.get(t.getThreadId()));
  ret out;
}

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: #1009303
Snippet name: threadInfosToThreads
Eternal ID of this version: #1009303/3
Text MD5: 991624f27273442a7b454fa9795e44d1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-22 04:29:31
Source code size: 284 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 477 / 487
Version history: 2 change(s)
Referenced in: [show references]