1 | svoid metaMapWeakPut(IMeta o, O key, O value) { |
2 | if (o == null || key == null) ret; |
3 | Map map = convertObjectMetaToMap(o); |
4 | synchronized(collectionMutex(map)) { |
5 | Map weakMap = mapGetOrCreate("weak map", () -> syncWeakMap()); |
6 | weakMap.put(key, value); |
7 | } |
8 | } |
Began life as a copy of #1031852
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032292 |
Snippet name: | metaMapWeakPut - metaMapPut but with weak key reference (put in special submap) |
Eternal ID of this version: | #1032292/3 |
Text MD5: | 35e108f0bf8e832c327a0c06dd9507e7 |
Author: | stefan |
Category: | javax / reasoning |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-26 23:32:54 |
Source code size: | 271 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 144 / 162 |
Version history: | 2 change(s) |
Referenced in: | [show references] |