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

3
LINES

< > BotCompany Repo | #1035061 // immutableMap - synonym of Collections.unmodifiableMap

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

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

static <A, B> Map<A, B> immutableMap(Map<A, B> map) {
  ret Collections.unmodifiableMap(map);
}

Author comment

Began life as a copy of #1035060

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035061
Snippet name: immutableMap - synonym of Collections.unmodifiableMap
Eternal ID of this version: #1035061/2
Text MD5: 75f1f7741fe45a126fa8e58fe0d141f7
Transpilation MD5: b83741b6e56ae61d39e6187c799afab1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-28 01:49:25
Source code size: 97 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 126 / 178
Version history: 1 change(s)
Referenced in: [show references]