1 | static <A, B> void putMultipleKeys(Map<A, B> map, Collection<A> keys, B value) {
|
2 | if (map == null || keys == null) ret; |
3 | for (A key : keys) |
4 | map.put(key, value); |
5 | } |
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: | 505 / 568 |
| Referenced in: | [show references] |