Libraryless. Click here for Pure Java version (1752L/11K).
static Set<S> collectNotNullsAsCISet(Iterable c, S field) { new Set<S> set; fOr (O a : c) addIfNotNull(set, (S) getOpt(a, field)); ret set; } static Set<S> mapMethodLike collectNotNullsAsCISet(S field, Iterable c) { ret collectNotNullsAsCISet(c, field); }
Began life as a copy of #1010440
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1024394 |
| Snippet name: | collectNotNullsAsCISet |
| Eternal ID of this version: | #1024394/3 |
| Text MD5: | e652f2f21870e65e25a0e6d805e57d6b |
| Transpilation MD5: | b1a270786619a7e2a6feb0c331f25775 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-08-09 11:39:27 |
| Source code size: | 277 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 426 / 537 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |