1 | static <A, B> Map<A, B> mergeMapsStrictly(Map<A, B> map1, Map<A, B> map2) {
|
2 | if (map2 == null) ret map1; |
3 | if (map1 == null) ret map2; |
4 | if (!canPutAllStrictly(map1, map2)) null; |
5 | ret mergeMaps(map1, map2); |
6 | } |
Began life as a copy of #1021754
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1025415 |
| Snippet name: | mergeMapsStrictly |
| Eternal ID of this version: | #1025415/1 |
| Text MD5: | 39c416d44c1eca4629dcdc790517958b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-09-28 18:52:08 |
| Source code size: | 215 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 392 / 442 |
| Referenced in: | [show references] |