1 | static Comparator<File> fileDateComparator() {
|
2 | ret new Comparator<File>() {
|
3 | public int compare(File a, File b) {
|
4 | long xx = a.lastModified(), yy = b.lastModified(); |
5 | return xx < yy ? -1 : xx == yy ? 0 : 1; |
6 | } |
7 | }; |
8 | } |
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: | #1015367 |
| Snippet name: | fileDateComparator |
| Eternal ID of this version: | #1015367/2 |
| Text MD5: | 13e792f1610e6fd8b45a4e90f38d99e6 |
| Author: | stefan |
| Category: | javax / io |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-13 13:27:18 |
| Source code size: | 241 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 679 / 704 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |