static new ThreadLocal<L<O>> holdInstance_l; static AutoCloseable holdInstance(O o) { if (o == null) null; listThreadLocalAdd(holdInstance_l, o); ret new AutoCloseable { public void close() { listThreadLocalPopLast(holdInstance_l); } }; }
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: | #1014825 |
Snippet name: | holdInstance - hold instance of a class for called functions - use with temp |
Eternal ID of this version: | #1014825/4 |
Text MD5: | 5afb72ee2f70365b2f296c80accf3534 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-07 21:29:35 |
Source code size: | 271 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 401 / 470 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014828 - heldInstance - get instance of a class held by holdInstance |