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

6
LINES

< > BotCompany Repo | #1013623 // cloneListSynchronizingOn

JavaX fragment (include)

static <A> ArrayList<A> cloneListSynchronizingOn(Collection<A> l, O mutex) {
  if (l == null) ret new L;
  synchronized(mutex) {
    ret new ArrayList<A>(l);
  }
}

Author comment

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: 443 / 472
Referenced in: [show references]