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

4
LINES

< > BotCompany Repo | #1030802 // syncMapRemove

JavaX fragment (include)

static <A, B> void syncMapRemove(Map<A, B> map, A key) {
  if (map != null && key != null)
    synchronized(collectionMutex(map)) { map.remove(key); }
}

Author comment

Began life as a copy of #1024464

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030802
Snippet name: syncMapRemove
Eternal ID of this version: #1030802/1
Text MD5: c6c9958f6836d16cef1caeb2571222b7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-03-26 17:20:41
Source code size: 155 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 92 / 125
Referenced in: [show references]