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

9
LINES

< > BotCompany Repo | #1009310 // threadInfosToThreads_map

JavaX fragment (include)

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

Author comment

Began life as a copy of #1009303

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: #1009310
Snippet name: threadInfosToThreads_map
Eternal ID of this version: #1009310/2
Text MD5: dcd44c5ac33f1591c05f5f1e4d5fc150
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-23 02:14:56
Source code size: 317 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 481 / 530
Version history: 1 change(s)
Referenced in: [show references]