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

7
LINES

< > BotCompany Repo | #1008055 - mapGet

JavaX fragment (include)

static <A, B> B mapGet(Map<A, B> map, A a) {
  ret map == null || a == null ? null : map.get(a);
}

static <A, B> B mapMethodLike mapGet(A a, Map<A, B> map) {
  ret map == null || a == null ? null : map.get(a);
}

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

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: 300 / 303
Version history: 1 change(s)
Referenced in: [show references]

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