Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1015367 // fileDateComparator

JavaX fragment (include)

static Comparator<File> fileDateComparator() {
  ret new Comparator<File>() {
    public int compare(File a, File b) {
      long xx = a.lastModified(), yy = b.lastModified();
      return xx < yy ? -1 : xx == yy ? 0 : 1;
    }
  };
}

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: 379 / 389
Version history: 1 change(s)
Referenced in: [show references]