1 | static <A> ArrayList<A> cloneListSynchronizingOn(Collection<A> l, O mutex) {
|
2 | if (l == null) ret new L; |
3 | synchronized(mutex) {
|
4 | ret new ArrayList<A>(l); |
5 | } |
6 | } |
Began life as a copy of #1001634
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: | #1013623 |
| Snippet name: | cloneListSynchronizingOn |
| Eternal ID of this version: | #1013623/1 |
| Text MD5: | 56f3ef3760ec1551d029fb2ddc35cd23 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-01-11 15:26:50 |
| Source code size: | 168 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 676 / 712 |
| Referenced in: | [show references] |