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