Libraryless. Click here for Pure Java version (3893L/22K).
static <A> L<A> syncTakeFirst(Cl<A> l, int n) { if (l == null) null; synchronized(collectionMutex(l)) { ret takeFirst(n, l); } } static <A> L<A> syncTakeFirst(int n, Cl<A> l) { ret syncTakeFirst(l, n); }
Began life as a copy of #1007549
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: | #1025950 |
Snippet name: | syncTakeFirst function - takeFirst + synchronize |
Eternal ID of this version: | #1025950/6 |
Text MD5: | 07e308fe10013d888d096fbf2b947ff9 |
Transpilation MD5: | dc9b238515ccdb8a75f5b4ab4c685a3a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-06 09:39:14 |
Source code size: | 225 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 219 / 326 |
Version history: | 5 change(s) |
Referenced in: | [show references] |