static bool containsNotNull(Collection c, O o) { ret o != null && contains(c, o); } static bool containsNotNull(O[] x, O o) { ret o != null && contains(x, o); }
Began life as a copy of #1002990
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: | #1011121 |
Snippet name: | containsNotNull - like contains(), but returns false if element is null |
Eternal ID of this version: | #1011121/1 |
Text MD5: | 6d8f782ba6cea9982efa875b62df44f9 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-15 17:09:44 |
Source code size: | 171 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 583 / 610 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |