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

8
LINES

< > BotCompany Repo | #1015220 // asLinkedHashMap

JavaX fragment (include)

static <A, B> LinkedHashMap<A, B> asLinkedHashMap(Map<A, B> map) {
  if (map instanceof LinkedHashMap) ret (LinkedHashMap) map;
  new LinkedHashMap<A, B> m;
  if (map != null) synchronized(collectionMutex(map)) {
    m.putAll(map);
  }
  ret m;
}

Author comment

Began life as a copy of #1012427

download  show line numbers  debug dex  old transpilations   

Travelled to 22 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, jozkyjcghlvl, lnbujpyubztb, lpdgvwnxivlt, mqqgnosmbjvj, ofpaelxlmzfo, onxytkatvevr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1015220
Snippet name: asLinkedHashMap
Eternal ID of this version: #1015220/4
Text MD5: e01e8c10c62bc047fa730b6cd75435d1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-10 20:45:39
Source code size: 253 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 508 / 2828
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)