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

6
LINES

< > BotCompany Repo | #1016977 // syncEmpty - synchronized empty()

JavaX fragment (include)

static <A> bool syncEmpty(Collection<A> l) {
  if (l == null) true;
  synchronized(l) {
    ret l.isEmpty();
  }
}

Author comment

Began life as a copy of #1012674

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016977
Snippet name: syncEmpty - synchronized empty()
Eternal ID of this version: #1016977/1
Text MD5: faca04de405e8237cf30ab9b5ac59ed7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-09 17:10:34
Source code size: 119 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 526 / 549
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1016990 - syncNempty - synchronized nempty()