1 | static <A> L<A> syncTakeLast(L<A> l, int n) { |
2 | if (l == null) ret takeLast(l, n); |
3 | synchronized(collectionMutex(l)) { |
4 | ret takeLast(l, n); |
5 | } |
6 | } |
7 | |
8 | static <A> L<A> syncTakeLast(int n, L<A> l) { |
9 | ret syncTakeLast(l, n); |
10 | } |
Began life as a copy of #1025950
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025952 |
Snippet name: | syncTakeLast function - takeLast + synchronize |
Eternal ID of this version: | #1025952/1 |
Text MD5: | 79086eef59ff6acef26c61ec633f1111 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-11-02 12:21:31 |
Source code size: | 233 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 192 / 225 |
Referenced in: | [show references] |