1 | static Comparator reverseOrder() {
|
2 | ret new Comparator {
|
3 | public int compare(O a, O b) {
|
4 | ret cmp(b, a); |
5 | } |
6 | }; |
7 | } |
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: | #1013542 |
| Snippet name: | reverseOrder - better than Collections.reverseOrder() - also allows null |
| Eternal ID of this version: | #1013542/3 |
| Text MD5: | b04dd1bc3e90461578839a6d0a6f1a16 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-01-08 09:13:50 |
| Source code size: | 132 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 653 / 707 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |