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: | 397 / 437 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1010874 - dropValuesFromMapOtherThan - modifies original map |