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

7
LINES

< > BotCompany Repo | #1033087 - wrapArrayAsImmutableList - accepts primitive or object array

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

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

static L wrapArrayAsImmutableList(O array) {
  if (array == null) null;
  if (array cast O[])
    ret wrapObjectArrayAsImmutableList(array);
  else
    ret wrapPrimitiveArrayAsImmutableList(array);
}

Author comment

Began life as a copy of #1033085

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033087
Snippet name: wrapArrayAsImmutableList - accepts primitive or object array
Eternal ID of this version: #1033087/3
Text MD5: a4c6920133732e30097b49287324f7c5
Transpilation MD5: ff56ff4bb7a363d36289f95bf96ebe12
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-14 02:59:37
Source code size: 205 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 14 / 34
Version history: 2 change(s)
Referenced in: [show references]