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

6
LINES

< > BotCompany Repo | #1016188 - cloneAsHashMap

JavaX fragment (include)

static <A, B> HashMap<A, B> cloneAsHashMap(Map<A, B> map) {
  if (map == null) ret litmap();
  synchronized(map) {
    ret new HashMap(map);
  }
}

Author comment

Began life as a copy of #1002559

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016188
Snippet name: cloneAsHashMap
Eternal ID of this version: #1016188/1
Text MD5: 24b131c61dd267cffc6a15f91dc39791
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-09 17:17:12
Source code size: 151 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 212 / 239
Referenced in: [show references]

Formerly at http://tinybrain.de/1016188 & http://1016188.tinybrain.de