1 | static void addIfNempty(Collection<S> l, S s) { |
2 | if (nempty(s)) l.add(s); |
3 | } |
4 | |
5 | static void addIfNempty(Collection l, Map m) { |
6 | if (nempty(m)) l.add(m); |
7 | } |
8 | |
9 | static void addIfNempty(Collection l, Collection c) { |
10 | if (nempty(c)) l.add(c); |
11 | } |
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: | 639 / 650 |
Version history: | 1 change(s) |
Referenced in: | [show references] |