1 | static Set getSortedSet(L l, S field) {
|
2 | new TreeSet 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 | } |
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: | #1002111 |
| Snippet name: | getSortedSet |
| Eternal ID of this version: | #1002111/1 |
| Text MD5: | 147701c16172846e79d96c93d31ea502 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-12-18 18:14:44 |
| Source code size: | 171 bytes / 9 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 1067 / 1314 |
| Referenced in: | [show references] |