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)

static <A> A setThreadLocal(ThreadLocal<A> tl, A value) {
  if (tl == null) null;
  A old = tl.get();
  tl.set(value);
  ret old;
}

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: 551 / 1297
Version history: 2 change(s)
Referenced in: [show references]