static <A, B> Map<A, B> mergeMaps(Map<A, B>... maps) { Map<A, B> map = null; for (Map<A, B> m : maps) { if (map == null) map = similarEmptyMap(m); map.putAll(m); } ret map; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004287 |
Snippet name: | mergeMaps - add maps together |
Eternal ID of this version: | #1004287/2 |
Text MD5: | bee8bd6dc693e1f2e6329b266f74a73a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-25 22:27:59 |
Source code size: | 197 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 597 / 595 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1023858 - mergeMapsToMultiMap - merge maps into a multi map. uniquify values |