svoid metaMapWeakPut(IMeta o, O key, O value) { if (o == null || key == null) ret; Map map = convertObjectMetaToMap(o); synchronized(collectionMutex(map)) { Map weakMap = mapGetOrCreate("weak map", () -> syncWeakMap()); weakMap.put(key, value); } }
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: | 145 / 163 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1032293 - metaMapWeakGet - metaMapGet but with for metaMapWeakPut |