Libraryless. Click here for Pure Java version (1752L/11K).
1 | static Set<S> collectNotNullsAsCISet(Iterable c, S field) { |
2 | new Set<S> set; |
3 | fOr (O a : c) |
4 | addIfNotNull(set, (S) getOpt(a, field)); |
5 | ret set; |
6 | } |
7 | |
8 | static Set<S> mapMethodLike collectNotNullsAsCISet(S field, Iterable c) { |
9 | ret collectNotNullsAsCISet(c, field); |
10 | } |
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: | 192 / 271 |
Version history: | 2 change(s) |
Referenced in: | [show references] |