Libraryless. Click here for Pure Java version (2824L/17K).
static <A, B> Map<A, B> toWeakHashMap(Map<A, B> map) { if (isWeakHashMap(map)) ret map; ret putAll(weakMap(), map); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031779 |
Snippet name: | toWeakHashMap |
Eternal ID of this version: | #1031779/1 |
Text MD5: | 73b5fbb7028c783d942b9e77052726dc |
Transpilation MD5: | f9d4e2f1962fdae807c3c01996c3ef06 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-29 18:02:11 |
Source code size: | 124 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 121 / 184 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |