1 | static Set getHashSet(L l, S field) {
|
2 | new HashSet set; |
3 | for (O o : l) {
|
4 | O x = cast getOpt(o, field); |
5 | if (x != null) |
6 | set.add(x); |
7 | } |
8 | ret set; |
9 | } |
Began life as a copy of #1002111
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: | #1002195 |
| Snippet name: | getHashSet - more like: collectHashSet |
| Eternal ID of this version: | #1002195/2 |
| Text MD5: | 2a2253e92f9bf244791cce450a9ba3fe |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-20 00:53:25 |
| Source code size: | 169 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 821 / 1108 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |