static Set getSortedSet(L l, S field) { new TreeSet set; for (O o : l) { O x = cast getOpt(o, field); if (x != null) set.add(x); } ret set; }
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: | 797 / 1042 |
Referenced in: | [show references] |