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).

1  
static L wrapArrayAsImmutableList(O array) {
2  
  if (array == null) null;
3  
  if (array cast O[])
4  
    ret wrapObjectArrayAsImmutableList(array);
5  
  else
6  
    ret wrapPrimitiveArrayAsImmutableList(array);
7  
}

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: 13 / 33
Version history: 2 change(s)
Referenced in: [show references]