1 | static <A, B> void dropValueFromMap(Map<A, B> map, B value) { |
2 | for (Iterator<Map.Entry<A, B>> it = map.entrySet().iterator(); it.hasNext();) |
3 | if (eq(it.next().getValue(), value)) it.remove(); |
4 | } |
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: | 396 / 437 |
Referenced in: | [show references] |