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

4
LINES

< > BotCompany Repo | #1018749 - syncRemove - remove & synchronize on collection

JavaX fragment (include)

static <A> bool syncRemove(Collection<A> c, A b) {
  if (c == null) false;
  synchronized(collectionMutex(c)) { ret c.remove(b); }
}

Author comment

Began life as a copy of #1016979

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1018749
Snippet name: syncRemove - remove & synchronize on collection
Eternal ID of this version: #1018749/3
Text MD5: 5da99c7f4b29afe57ad103e87c26cda8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-21 13:24:03
Source code size: 135 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 90 / 97
Version history: 2 change(s)
Referenced in: [show references]

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