static <A> void mapPutIfNemptyValue(Map<A, S> map, A key, S value) { if (map != null && key != null && nempty(value)) map.put(key, value); } static <A, B extends Collection> void mapPutIfNemptyValue(Map<A, B> map, A key, B value) { if (map != null && key != null && nempty(value)) map.put(key, value); }
Began life as a copy of #1007227
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021598 |
Snippet name: | mapPutIfNemptyValue - put into map if key is not null & value is not empty |
Eternal ID of this version: | #1021598/4 |
Text MD5: | 7b1849190bbf2f40871065a8dcee3842 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-17 07:20:55 |
Source code size: | 314 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 303 / 353 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |