1 | static <A, B> B mapGet2(Map<A, B> map, A a) { |
2 | ret map == null ? null : map.get(a); |
3 | } |
4 | |
5 | static <A, B> B mapMethodLike mapGet2(A a, Map<A, B> map) { |
6 | ret map == null ? null : map.get(a); |
7 | } |
Began life as a copy of #1008055
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: | #1024466 |
Snippet name: | mapGet2 - checks map for null, but not the key |
Eternal ID of this version: | #1024466/1 |
Text MD5: | c43552be5ebdedd2954275824bf75103 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-13 13:04:08 |
Source code size: | 194 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 212 / 248 |
Referenced in: | [show references] |