1 | static <A> A listThreadLocalPopLast(ThreadLocal<L<A>> tl) {
|
2 | L<A> l = tl.get(); |
3 | if (l == null) null; |
4 | A a = popLast(l); |
5 | if (empty(l)) tl.set(null); |
6 | ret a; |
7 | } |
Began life as a copy of #1014826
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: | #1014827 |
| Snippet name: | listThreadLocalPopLast - remove & return last element |
| Eternal ID of this version: | #1014827/1 |
| Text MD5: | be3facfc26f4684e3486c8ae65e54b43 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-04 10:11:31 |
| Source code size: | 170 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 710 / 760 |
| Referenced in: | [show references] |