Libraryless. Click here for Pure Java version (2824L/17K).
1 | static <A, B> Map<A, B> toWeakHashMap(Map<A, B> map) {
|
2 | if (isWeakHashMap(map)) ret map; |
3 | ret putAll(weakMap(), map); |
4 | } |
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: | 324 / 442 |
| Referenced in: | [show references] |