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

5
LINES

< > BotCompany Repo | #1031785 // toSmallArrayBasedMap

JavaX fragment (include)

static <A, B> Map<A, B> toSmallArrayBasedMap(Map<A, B> map) {
  if (empty(map)) null;
  if (map instanceof SmallArrayBasedMap) ret map;
  ret new SmallArrayBasedMap(map);
}

Author comment

Began life as a copy of #1031060

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031785
Snippet name: toSmallArrayBasedMap
Eternal ID of this version: #1031785/1
Text MD5: ea971c73ca4a23f791e0c2108ffdb426
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-29 18:44:16
Source code size: 176 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 145 / 185
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)