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

4
LINES

< > BotCompany Repo | #1010873 // dropValueFromMap - modifies original map

JavaX fragment (include)

static <A, B> void dropValueFromMap(Map<A, B> map, B value) {
  for (Iterator<Map.Entry<A, B>> it = map.entrySet().iterator(); it.hasNext();)
    if (eq(it.next().getValue(), value)) it.remove();
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010873
Snippet name: dropValueFromMap - modifies original map
Eternal ID of this version: #1010873/1
Text MD5: 4841509b5ba9c4bfa31546ac19f691a4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-05 00:13:14
Source code size: 200 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 320 / 359
Referenced in: [show references]