Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1032293 // metaMapWeakGet - metaMapGet but with for metaMapWeakPut

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (67L/1K).

sO metaMapWeakGet(IMeta o, O key) {
  if (o == null || key == null) null;
  O meta = o._getMeta();
  if (meta cast Map) {
    Map weakMap = cast meta.get("weak map");
    ret mapGet(weakMap, key);
  }
  null;
}

Author comment

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: 129 / 181
Version history: 5 change(s)
Referenced in: [show references]