Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data


< > BotCompany Repo | #1001068 // synchroList

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (36L/1K).

static <A> L<A> synchroList() {
  ret synchroList(new ArrayList<A>());

static <A> L<A> synchroList(L<A> l) {
  ifdef OurSyncCollections
    ret new SynchronizedList(l);
  ifndef OurSyncCollections
    ret Collections.synchronizedList(l);

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: 838 / 3820
Version history: 2 change(s)
Referenced in: [show references]