1 | static <A, B> B getAny(Map<A, B> map, A... keys) { |
2 | fOr (A a : keys) { |
3 | B b = map.get(a); |
4 | if (b != null) ret b; |
5 | } |
6 | null; |
7 | } |
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: | 207 / 257 |
Version history: | 1 change(s) |
Referenced in: | [show references] |