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  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, 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: 617 / 665
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1019310 - mapGetOr
#1024466 - mapGet2 - checks map for null, but not the key
#1024974 - mapGetString
#1030224 - getAndRemove - get element from map and remove
#1032556 - rmapGet - mapGet with reversed parameters. actually the same as mapGet, löl