public static class FileUtil.FileTimeComparator extends Object implements Comparator<File>
FileTimeComparator class allows comparing 'last modified' time in 2 given
 File objects.| Constructor and Description | 
|---|
| FileTimeComparator() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compare(File o1,
       File o2) | 
| boolean | equals(Object obj) | 
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(File o1, File o2) throws ClassCastException
compare in interface Comparator<File>ClassCastException - if the arguments' types prevent them from being compared by this
           Comparator.public boolean equals(Object obj)
equals in interface Comparator<File>equals in class Objectobj - The reference object with which to compare.true only if the specified object is also a
         FileTimeComparator, and it imposes the same ordering as this
         comparator.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.