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

5
LINES

< > BotCompany Repo | #1031052 // cloneIfCollectionOrMap

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

Libraryless. Click here for Pure Java version (2769L/16K).

sO cloneIfCollectionOrMap(O o) {
  if (o cast Cl) ret cloneCollection(o);
  if (o cast Map) ret cloneMap(o);
  ret o;
}

Author comment

Began life as a copy of #1030199

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1031052
Snippet name: cloneIfCollectionOrMap
Eternal ID of this version: #1031052/1
Text MD5: 361ea0e80633d39a3e073d9076a08c3b
Transpilation MD5: d2de700ab08e275dd3b6ddf4fe3d2630
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-26 16:03:40
Source code size: 123 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 179 / 242
Referenced in: [show references]