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

7
LINES

< > BotCompany Repo | #1029002 // keysWhereValueContainsString

JavaX fragment (include)

1  
static <A> L<A> keysWhereValueContainsString(S b, Map<A, S> map) {
2  
  new L<A> l;
3  
  if (map != null) for (A key, S value : map)
4  
    if (contains(value, b))
5  
      l.add(key);
6  
  ret l;
7  
}

Author comment

Began life as a copy of #1028999

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: #1029002
Snippet name: keysWhereValueContainsString
Eternal ID of this version: #1029002/1
Text MD5: 1738b94edd8734aafbc886a33bd3e838
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-16 18:27:06
Source code size: 189 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 190 / 217
Referenced in: [show references]