static void addIfNempty(Collection<S> l, S s) {
if (nempty(s)) l.add(s);
}
static void addIfNempty(Collection l, Map m) {
if (nempty(m)) l.add(m);
}
static void addIfNempty(Collection l, Collection c) {
if (nempty(c)) l.add(c);
}Began life as a copy of #1004244
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1007669 |
| Snippet name: | addIfNempty - synonym of addIfNonEmpty |
| Eternal ID of this version: | #1007669/2 |
| Text MD5: | 28cb5e220af9c3d27bb7bdc185fd6114 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-08-08 14:25:09 |
| Source code size: | 247 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1297 / 1290 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1028150 - revChainPlusIfNempty #1032789 - addUnlessEmpty |