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

11
LINES

< > BotCompany Repo | #1027506 // concatListsToTreeSet

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

Libraryless. Click here for Pure Java version (2204L/14K).

static <A> TreeSet<A> concatListsToTreeSet(Collection<? extends Cl<A>> lists) {
  new TreeSet<A> l;
  for (Cl<A> list : lists)
    if (list != null)
      l.addAll(list);
  ret l;
}

static <A> TreeSet<A> concatListsToTreeSet(Cl<A>... lists) {
  ret concatListsToTreeSet(asList(lists));
}

Author comment

Began life as a copy of #1022566

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: #1027506
Snippet name: concatListsToTreeSet
Eternal ID of this version: #1027506/5
Text MD5: bc6006472009f3f3d4aed4af140b59a1
Transpilation MD5: c6d7083cb0a1a706bd3067b68f77a448
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-22 16:13:03
Source code size: 298 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 110 / 170
Version history: 4 change(s)
Referenced in: [show references]