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

4
LINES

< > BotCompany Repo | #1024633 // syncRemoveAll - removeAll & synchronize on collection

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (1758L/11K).

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

Author comment

Began life as a copy of #1018749

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024633
Snippet name: syncRemoveAll - removeAll & synchronize on collection
Eternal ID of this version: #1024633/3
Text MD5: ee820870465995477b01244caad3267e
Transpilation MD5: 157222118603d51be3ea4941539895a9
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:23:11
Source code size: 166 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 217 / 321
Version history: 2 change(s)
Referenced in: [show references]