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

8
LINES

< > BotCompany Repo | #1002494 // toList - synonym of asList

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

Libraryless. Click here for Pure Java version (360L/2K).

static <A> ArrayList<A> toList(A[] a) { ret asList(a); }
static ArrayList<Integer> toList(int[] a) { ret asList(a); }
static ArrayList<Short> toList(short[] a) { ret asList(a); }
static ArrayList<Long> toList(long[] a) { ret asList(a); }
static ArrayList<Double> toList(double[] a) { ret asList(a); }
static ArrayList<Float> toList(float[] a) { ret asList(a); }
static <A> ArrayList<A> toList(Set<A> s) { ret asList(s); }
static <A> ArrayList<A> toList(Iterable<A> s) { ret asList(s); }

Author comment

Began life as a copy of #1002092

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, iveijnkanddl, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002494
Snippet name: toList - synonym of asList
Eternal ID of this version: #1002494/6
Text MD5: 23aa49686bb95ec706adb161c2fd28f9
Transpilation MD5: 8495e5aaa72c6abdebbf9674477e4dd5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-03-20 20:49:13
Source code size: 493 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 783 / 802
Version history: 5 change(s)
Referenced in: [show references]