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

6
LINES

< > BotCompany Repo | #1034766 // allValues - list of all values of a map's (collection) values

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

Libraryless. Click here for Pure Java version (5217L/29K).

static <A, B, C extends Cl<B>> L<B> allValues(Map<A, C> map) {
  new L<B> out;
  for (l : values(map))
    addAll(out, l);
  ret out;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034766
Snippet name: allValues - list of all values of a map's (collection) values
Eternal ID of this version: #1034766/1
Text MD5: 0856944ca4b699c40ce564ff911ae02e
Transpilation MD5: e55c47e855d1251f5ab7d1f612422f22
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-08 06:16:17
Source code size: 140 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 81 / 116
Referenced in: [show references]