static <A, B> void putMultipleKeys(Map<A, B> map, Collection<A> keys, B value) { if (map == null || keys == null) ret; for (A key : keys) map.put(key, value); }
Began life as a copy of #1018375
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020858 |
| Snippet name: | putMultipleKeys - put value in map with multiple keys |
| Eternal ID of this version: | #1020858/1 |
| Text MD5: | 872562dc30284bad4c67c2e5b2a8d320 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-01-06 11:41:43 |
| Source code size: | 172 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 504 / 567 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |