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

9
LINES

< > BotCompany Repo | #1002013 // toObjectArray - could make optimized version for non-concurrent collections

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

Libraryless. Click here for Pure Java version (3801L/22K).

// binary legacy signature
static O[] toObjectArray(Cl c) {
  ret toObjectArray((Iterable) c);
}

static O[] toObjectArray(Iterable c) {
  L l = asList(c);
  return l.toArray(new O[l.size()]);
}

Author comment

Began life as a copy of #1001235

download  show line numbers  debug dex  old transpilations   

Travelled to 18 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, wtqryiryparv, xrpafgyirdlv

No comments. add comment

Snippet ID: #1002013
Snippet name: toObjectArray - could make optimized version for non-concurrent collections
Eternal ID of this version: #1002013/5
Text MD5: b9751d47ed97c78422e31f4bc0ce4d1b
Transpilation MD5: b6418b7464cc0ce5f6b23e4f72e8584c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-29 23:06:39
Source code size: 204 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 645 / 1812
Version history: 4 change(s)
Referenced in: [show references]