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

6
LINES

< > BotCompany Repo | #1011580 // setThreadLocal - returns old value

JavaX fragment (include)

1  
static <A> A setThreadLocal(ThreadLocal<A> tl, A value) {
2  
  if (tl == null) null;
3  
  A old = tl.get();
4  
  tl.set(value);
5  
  ret old;
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 18 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, omdjrrnzbjjv, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1011580
Snippet name: setThreadLocal - returns old value
Eternal ID of this version: #1011580/3
Text MD5: 02691eb263994eab02b6753e74966a67
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-28 11:54:33
Source code size: 136 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 462 / 1215
Version history: 2 change(s)
Referenced in: [show references]