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

6
LINES

< > BotCompany Repo | #1018751 // syncSize - l + sync

JavaX fragment (include)

static <A> int syncSize(Collection<A> l) {
  if (l == null) ret 0;
  synchronized(l) {
    ret l(l);
  }
}

Author comment

Began life as a copy of #1012674

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018751
Snippet name: syncSize - l + sync
Eternal ID of this version: #1018751/4
Text MD5: cd7dc905fde068d7680063786750c474
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-12 16:13:52
Source code size: 111 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 376 / 395
Version history: 3 change(s)
Referenced in: [show references]