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

7
LINES

< > BotCompany Repo | #1024381 // getAny

JavaX fragment (include)

static <A, B> B getAny(Map<A, B> map, A... keys) {
  fOr (A a : keys) {
    B b = map.get(a);
    if (b != null) ret b;
  }
  null;
}

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: #1024381
Snippet name: getAny
Eternal ID of this version: #1024381/2
Text MD5: 3ec84b78beb29734404632c42e5293e6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-08 14:53:56
Source code size: 139 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 135 / 184
Version history: 1 change(s)
Referenced in: [show references]