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

6
LINES

< > BotCompany Repo | #1026540 // containsOneKeyOf

JavaX fragment (include)

static <A, B> bool containsOneKeyOf(Map<A, B> map, A... keys) {
  fOr (A key : keys)
    if (containsKey(map, key))
      true;
  false;
}

Author comment

Began life as a copy of #1015453

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: #1026540
Snippet name: containsOneKeyOf
Eternal ID of this version: #1026540/2
Text MD5: f02d6269f3ebf2e864a1f09746feb7ce
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-11 22:53:22
Source code size: 143 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 138 / 170
Version history: 1 change(s)
Referenced in: [show references]