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

9
LINES

< > BotCompany Repo | #1015127 // putIfKeyNempty

JavaX fragment (include)

static <B> void putIfKeyNempty(Map<S, B> map, S key, B value) {
  if (map != null && nempty(key)) map.put(key, value);
}

ifclass MultiMap
static <B> void putIfKeyNempty(MultiMap<S, B> map, S key, B value) {
  if (map != null && nempty(key)) map.put(key, value);
}
endif

Author comment

Began life as a copy of #1014218

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015127
Snippet name: putIfKeyNempty
Eternal ID of this version: #1015127/3
Text MD5: 7cf8d8a49f0a5111a85e8938044f2e05
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-08 15:11:39
Source code size: 278 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 347 / 371
Version history: 2 change(s)
Referenced in: [show references]