Libraryless. Click here for Pure Java version (67L/1K).
1 | sO metaMapWeakGet(IMeta o, O key) { |
2 | if (o == null || key == null) null; |
3 | O meta = o._getMeta(); |
4 | if (meta cast Map) { |
5 | Map weakMap = cast meta.get("weak map"); |
6 | ret mapGet(weakMap, key); |
7 | } |
8 | null; |
9 | } |
Began life as a copy of #1032292
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032293 |
Snippet name: | metaMapWeakGet - metaMapGet but with for metaMapWeakPut |
Eternal ID of this version: | #1032293/6 |
Text MD5: | d739cc40839c76238efa01354639ea63 |
Transpilation MD5: | a02f79ff593740477261bef40c7848e8 |
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:35:03 |
Source code size: | 218 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 131 / 185 |
Version history: | 5 change(s) |
Referenced in: | [show references] |