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

7
LINES

< > BotCompany Repo | #1008055 - mapGet

JavaX fragment (include)

1  
static <A, B> B mapGet(Map<A, B> map, A a) {
2  
  ret map == null || a == null ? null : map.get(a);
3  
}
4  
5  
static <A, B> B mapMethodLike mapGet(A a, Map<A, B> map) {
6  
  ret map == null || a == null ? null : map.get(a);
7  
}

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1008055
Snippet name: mapGet
Eternal ID of this version: #1008055/2
Text MD5: 0d94e5d56dce58e3a37b1066f3c1778e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-31 05:55:52
Source code size: 218 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 325 / 340
Version history: 1 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1008055 & http://1008055.tinybrain.de