1 | static File latestFile(Iterable<File> l) { |
2 | new Best<File> best; |
3 | for (File f : unnull(l)) |
4 | if (f != null) |
5 | best.put(f, f.lastModified()); |
6 | ret best!; |
7 | } |
8 | |
9 | static File latestFile(File[] l) { |
10 | ret latestFile(asList(l)); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019116 |
Snippet name: | latestFile (out of a list) |
Eternal ID of this version: | #1019116/2 |
Text MD5: | 1e5c6f8655e1c3d5c59fe6389a0a27d8 |
Author: | stefan |
Category: | javax / io |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-30 22:44:36 |
Source code size: | 240 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 447 / 500 |
Version history: | 1 change(s) |
Referenced in: | [show references] |