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

6
LINES

< > BotCompany Repo | #1016969 - syncAddAll - addAll & synchronize on collection

JavaX fragment (include)

static <A> bool syncAddAll(Collection<A> c, Collection<A> b) {
  if (c == null || b == null) false;
  synchronized(c) {
    ret c.addAll(b);
  }
}

Author comment

Began life as a copy of #1012674

download  show line numbers  debug dex   

Travelled to 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1016969
Snippet name: syncAddAll - addAll & synchronize on collection
Eternal ID of this version: #1016969/1
Text MD5: a8f3a1c18b97d6c283a8ac68264e106f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-09 16:04:19
Source code size: 151 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 183 / 169
Referenced in: [show references]

Formerly at http://tinybrain.de/1016969 & http://1016969.tinybrain.de