1 | static LinkedHashSet collectUniqueOrdered(Collection c, S field) {
|
2 | new LinkedHashSet set; |
3 | for (O a : c) {
|
4 | O val = getOpt(a, field); |
5 | if (val != null) |
6 | set.add(val); |
7 | } |
8 | ret set; |
9 | } |
Began life as a copy of #1005062
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: | #1010787 |
| Snippet name: | collectUniqueOrdered |
| Eternal ID of this version: | #1010787/1 |
| Text MD5: | e38c020c75193b40b97af627e4e3e9d9 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-03 17:31:11 |
| Source code size: | 205 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 501 / 541 |
| Referenced in: | [show references] |