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

7
LINES

< > BotCompany Repo | #1024188 // keysWhereValueContains

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

Libraryless. Click here for Pure Java version (86L/1K).

static <A, B, C extends Collection<B>> L<A> keysWhereValueContains(B b, Map<A, C> map) {
  new L<A> l;
  for (A key, C value : map)
    if (contains(value, b))
      l.add(key);
  ret l;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024188
Snippet name: keysWhereValueContains
Eternal ID of this version: #1024188/2
Text MD5: cf12d71d1d824ee3cdf1ede299692143
Transpilation MD5: c98e6af693a04b9433fd803526ba6932
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-24 19:27:40
Source code size: 194 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 121 / 189
Version history: 1 change(s)
Referenced in: [show references]