Transpiled version (2747L) is out of date.
1 | static <A, B> HashMap<A, B> asHashMap(Map<A, B> map) {
|
2 | // check for precise type to reject LinkedHashMap |
3 | if (map != null && map.getClass() == HashMap.class) ret (HashMap) map; |
4 | |
5 | HashMap<A, B> m = new HashMap(l(map)); |
6 | if (map != null) m.putAll(map); |
7 | ret m; |
8 | } |
Began life as a copy of #1012402
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1015751 |
| Snippet name: | asHashMap |
| Eternal ID of this version: | #1015751/7 |
| Text MD5: | 3436ec9f05fa483bb2a08461a8ccef38 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-25 07:23:28 |
| Source code size: | 275 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 697 / 909 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |