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

5
LINES

< > BotCompany Repo | #1035186 // tempRestoreMap

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

Libraryless. Click here for Pure Java version (7667L/43K).

static <A, B> AutoCloseable tempRestoreMap(Map<A, B> map) {
  if (map == null) null;
  var cloned = cloneMap(map);
  ret -> copyMap(cloned, map);
}

Author comment

Began life as a copy of #1035185

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035186
Snippet name: tempRestoreMap
Eternal ID of this version: #1035186/2
Text MD5: c0f1e519e123de2e599cf6f564282713
Transpilation MD5: 2a12d005ba973a84ae339fa41fc760c1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-05 22:56:06
Source code size: 151 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 122 / 183
Version history: 1 change(s)
Referenced in: [show references]