Libraryless. Click here for Pure Java version (52L/1K).
1 | static <A, B> Map<A, B> putAll(Map<A, B> a, Map<? extends A,? extends B> b) { |
2 | if (a != null && b != null) a.putAll(b); |
3 | ret a; |
4 | } |
5 | |
6 | ifclass MultiMap |
7 | static <A, B> MultiMap<A, B> putAll(MultiMap<A, B> a, Map<? extends A,? extends B> b) { |
8 | if (a != null) a.putAll((Map) b); |
9 | ret a; |
10 | } |
11 | endif |
12 | |
13 | static <A, B> Map<A, B> putAll(Map<A, B> a, O... b) { |
14 | if (a != null) |
15 | litmap_impl(a, b); |
16 | ret a; |
17 | } |
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: | #1007435 |
Snippet name: | putAll - add map b to map a and return a |
Eternal ID of this version: | #1007435/6 |
Text MD5: | 2fe5e97e606565d6a14abbc523b29ddb |
Transpilation MD5: | d6e1abd24a78a61c0fca0fb3f5ef153d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-05 14:14:28 |
Source code size: | 414 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 662 / 778 |
Version history: | 5 change(s) |
Referenced in: | [show references] |