Libraryless. Click here for Pure Java version (2506L/16K).
1 | svoid <A> syncRemoveAllExceptLast(L<A> l) {
|
2 | if (l == null) ret; |
3 | synchronized(collectionMutex(l)) {
|
4 | removeSubList(l, 0, l(l)-1); |
5 | } |
6 | } |
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: | 449 / 599 |
| Referenced in: | [show references] |