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

3
LINES

< > BotCompany Repo | #1028994 // asCollection

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

Libraryless. Click here for Pure Java version (2466L/16K).

static <A> Cl<A> asCollection(Iterable<A> l) {
  ret l == null ? null : l instanceof Cl ? l/Cl : asList(l);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028994
Snippet name: asCollection
Eternal ID of this version: #1028994/1
Text MD5: ba9f72d7a6c876595a5e7d887167f48d
Transpilation MD5: 22ed0b95e7c9fbc1f2cad142605c8e9d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-16 17:48:00
Source code size: 111 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 159 / 227
Referenced in: [show references]