Libraryless. Click here for Pure Java version (36L/1K).
1 | static <A> L<A> synchroList() {
|
2 | ret synchroList(new ArrayList<A>()); |
3 | } |
4 | |
5 | static <A> L<A> synchroList(L<A> l) {
|
6 | ifdef OurSyncCollections |
7 | ret new SynchronizedList(l); |
8 | endifdef |
9 | ifndef OurSyncCollections |
10 | ret Collections.synchronizedList(l); |
11 | endifndef |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1001068 |
| Snippet name: | synchroList |
| Eternal ID of this version: | #1001068/3 |
| Text MD5: | 543480d81b5d2886f8d67459b57418ae |
| Transpilation MD5: | eceb5ff483ed761fc7a2ebcdefb364df |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-05-16 17:59:23 |
| Source code size: | 278 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1424 / 4555 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |