Libraryless. Click here for Pure Java version (2506L/16K).
svoid <A> syncRemoveAllExceptLast(L<A> l) { if (l == null) ret; synchronized(collectionMutex(l)) { removeSubList(l, 0, l(l)-1); } }
download show line numbers debug dex old transpilations
Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029844 |
Snippet name: | syncRemoveAllExceptLast |
Eternal ID of this version: | #1029844/1 |
Text MD5: | c1c63add87715e9a9e1f1a1183c40fdc |
Transpilation MD5: | 7a2ad9fc57e367abc6bff96f10f10e9a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-22 12:54:47 |
Source code size: | 146 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 232 / 349 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |